profile
viewpoint
Victor Maslov Nakilon Moscow, Russia Ruby != Rails. New Github design sucks. Bring back the squared userpics!

Nakilon/rbtris 48

Tetris game powered by Ruby2D

Nakilon/dhash-vips 34

Ruby gem to measure images similarity

Nakilon/mll 12

Mathematica Language Library in Ruby

Nakilon/git-to-gcs 3

Sync Google Cloud Storage buckets with git repo directories

Nakilon/directlink 1

Gem that converts any kind of image hyperlink to a direct link to a high res version, image type and its resolution.

Nakilon/pcbr 1

PCBR (Pairs Comparison Based Rating) Ruby gem

Nakilon/awesome-piracy 0

A curated list of awesome warez and piracy links

Nakilon/awesome-starcraftAI 0

A curated list of resources dedicated to StarCraft AI.

Nakilon/befunge98 0

[WIP] Probably the first Befunge-98 interpreter in Ruby.

push eventNakilon/adventofcode-befunge

Victor Maslov

commit sha 4b6bf2012e59da5bb0ff956c6b6d2bfeef653018

2019 2 2

view details

push time in 3 hours

push eventNakilon/befunge98

Victor Maslov

commit sha 747c729bedc432618d598f674151a141094ab1b9

negative `j` fixed, tests added; minor optimization

view details

push time in 3 hours

push eventNakilon/adventofcode-befunge

Victor Maslov

commit sha e1fd819a066cee7421d86641bac5491308884218

2019 2 1

view details

Victor Maslov

commit sha ca6c6a0775da871ddb540274446a0c1cf8251528

2019 2 2

view details

Victor Maslov

commit sha 60abb06a1aa8dd2f985a7735a3f4388b328e66c0

2019 2 2

view details

Victor Maslov

commit sha 90bfe6d208616d68dbbb2b2a84e844bbf2f77ae5

2019 2 2

view details

Victor Maslov

commit sha 87ec45f61d17eb0e3d362a2745c551cd26fb2d0a

2019 2 2

view details

push time in 4 hours

push eventNakilon/adventofcode-befunge

Victor Maslov

commit sha 31d0267cd432227e40523d56d49eb632dcf17999

2019 2 2

view details

push time in 17 hours

push eventNakilon/befunge98

Victor Maslov

commit sha 4199ba9888e0b6a074690387f8699f2d3060d187

empty lines caused error

view details

push time in 20 hours

push eventNakilon/befunge98

Victor Maslov

commit sha a2c23022a71bf30f169f7bb83b4123fd63644947

test for `w`

view details

push time in 21 hours

push eventNakilon/adventofcode-befunge

Victor Maslov

commit sha 67f1abf6d739dbae891bc7de09ffb9a13b48587a

2019 2 1

view details

push time in a day

push eventNakilon/befunge98

Victor Maslov

commit sha 4052fd4c99a1d03e3bfaf3c126fd1e15a01c10c9

3 bugs fixed, 3 tests implemented

view details

push time in a day

push eventNakilon/adventofcode-befunge

Victor Maslov

commit sha 470afc931eeea1b36cdcb07b8fadf9d104cda194

2019 1 2

view details

push time in a day

push eventNakilon/adventofcode-befunge

Victor Maslov

commit sha 151e88811b2b1b0ffe1b3189dea03229c19e77db

2017 1 1

view details

Victor Maslov

commit sha 03df02668bf30f039acbd8bd6b566e22402118cc

2019 1 1

view details

push time in a day

push eventNakilon/befunge98

Victor Maslov

commit sha c64778eff5cc19be79bfc87386fe6a34d01c8a86

ability to read source code from STDIN

view details

push time in a day

create barnchNakilon/adventofcode-befunge

branch : master

created branch time in a day

created repositoryNakilon/adventofcode-befunge

55+67*.,@

created time in a day

created tagNakilon/befunge98

tagv0.0.1

[WIP] Probably the first Befunge-98 interpreter in Ruby.

created time in a day

push eventNakilon/befunge98

Victor Maslov

commit sha 3aa15b0e232d9329225724a01dae438b92c273f8

mixed tests of ~ and & for 93 and 98

view details

Victor Maslov

commit sha fb6066c5010597a169b45c147893ef884ca1f430

tests for `p` and `g`

view details

Victor Maslov

commit sha d459b17da43680586863ff64612148a7bcade473

binary has no extension

view details

push time in a day

startedDeewiant/Mycology

started time in a day

push eventNakilon/befunge98

Victor Maslov

commit sha 10ea4f3fd2e97d8cc765f5807755adf69de6f43e

implemented `i`, `o`; bugfix in ds

view details

Victor Maslov

commit sha 5ae122c872a6ea219046fcb9b170aa74363ba13e

refactored everything after two years; code is now byte[][], not string[]

view details

Victor Maslov

commit sha 662308d4a5990e328630660548b63ecae98d42df

default encoding; Lahey-Space

view details

push time in a day

issue commentcatseye/Funge-98

How does backtrack wrapping work?

If the program is like this

XXXXXXX
X XXXXX
XXXXXXX
XXX+XXX
XXXXXXX
XXXXX+X
XXXXXXX

and we are at (5, 5) with delta (-2, -2) then we'll loop within two cells (5, 5) and (3, 3), right?

AndrewSav

comment created time in 2 days

issue commentcatseye/Funge-98

Can `x` set delta with Manhattan length longer than 1? And what are the "the least/greater point which contains a non-space cell, relative to the origin"?

Answering my own question:

And if the delta was (1, 1) it would wrap to (19, -1), right?

I guess not, it will just loop forever because there is nothing to the North-West from it.

More questions:


ASCII Instruction          Before    After     Other Effects
----- -----------          ------    -----     -------------
,     Output Character     c                   writechar(c)

How does it work if cell is bigger than one byte?


The k "Iterate" instruction pops a value n off the stack. Then it finds the next instruction in Funge-space in the path of the IP (note that this cannot be a marker such as space or ;)

What are other markers? "? Anything else? What does mean "cannot"? My interpreter should raise an exception? Or should it add delta until it finds not-a-marker (this is how it's implemented in my draft right now but I don't remember where I took it from and will probably remove it)?

Nakilon

comment created time in 2 days

startedmicrosoft/playwright

started time in 2 days

startedsirredbeard/Awesome-WSL

started time in 3 days

issue commentNakilon/dhash-vips

idhash.c:1:10: fatal error: 'bignum.c' file not found when using v 0.1.1.1 and 0.1.1.2

@MFRWDesign @ynelin please, check if 0.1.1.3 works for you.

MFRWDesign

comment created time in 3 days

created tagNakilon/dhash-vips

tagv0.1.1.3

Ruby gem to measure images similarity

created time in 3 days

push eventNakilon/dhash-vips

Victor Maslov

commit sha 73ea4816e01a4f288a28248d0e872465486a7662

resolves #5

view details

push time in 3 days

issue closedNakilon/dhash-vips

idhash.c:1:10: fatal error: 'bignum.c' file not found when using v 0.1.1.1 and 0.1.1.2

Came across this bug today while trying to bundle install our project. Posting this issue in case it's of some help to someone else. I tried to track it down but couldn't find anything that helped (including brew reinstall vips, brew upgrade && brew update.

Eventually I fixed the bundling error for dhash-vips by rolling the version specified in the Gemfile back to '0.1.1'.

I'm running: OS X 10.15.5 Homebrew 2.5.1 Ruby 2.7.1 (via rbenv v1.1.2)

(I suspect the problem to have arisen from the changes to extconf.rb in this commit: http://github.com/Nakilon/dhash-vips/commit/56fba57aac82552f26086474cd57b63a4a99dc36%20 but I can't be sure as I wasn't able to verify any fix.)

closed time in 3 days

MFRWDesign

issue commentNakilon/dhash-vips

idhash.c:1:10: fatal error: 'bignum.c' file not found when using v 0.1.1.1 and 0.1.1.2

Thank you guys for the bug report! Probably I should make some Github Action to test the installation process.

bignum.c is a part of Ruby source code that is needed for compilation if you want the fingerprint comparison to be 15 times faster. Essentially the 'bignum.c' file not found means that you didn't use flag -k in rbenv install. Did you? It should be handled and just skip the compilation of the native extension though. Maybe in last releases I broke it and forgot to check.

MFRWDesign

comment created time in 4 days

startedkautukkundan/Awesome-Profile-README-templates

started time in 6 days

PR opened rubycdp/ferrum

WindowBounds have not only width and height but also left and top

The test does not pass in headless, I don't know why.

+29 -4

0 comment

3 changed files

pr created time in 9 days

create barnchNakilon/ferrum

branch : position

created branch time in 9 days

issue openedrubycdp/ferrum

Way to move the browser window?

When running Capybara on macOS with external display attached I made it move the browser window to external display automatically because initially it opens it on the same display with Terminal. The last line was like this:

browser.manage.window.position = Selenium::WebDriver::Point.new x, y

How do I move Ferrum's Chrome window?

created time in 9 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha 8ff5142d2596456c2a104f9055d88adaeafb25c3

Github Action env var 'CI' was present in Ubuntu but not in Alpine

view details

push time in 10 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha bfc682382db622e07c20d292c0fb14689ccba98f

Github Action runs tests

view details

push time in 10 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha 6b663c5f0d1175d85d9e3229090e8304708bd347

added google.htm to github-linguist ignore

view details

push time in 10 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha 389c67e19b5b5900dc023be5be8131cf42a1af9a

the very first test implemented, based on google.com example

view details

push time in 10 days

startedliamoc/holbert

started time in 10 days

startedevolve75/RubyTree

started time in 11 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha c3277210031d9ec448e181423f1cef19209f9b31

dealing with GCS and Github image caching

view details

push time in 11 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha 891ca53ee163b65b953d4041f1e4b24ea59e4f8c

added Logger; sorting by area improved speed

view details

Victor Maslov

commit sha 565a7d46fcd0c56b7dc3482906bc7b0d7b5be7b8

expanded README with google example

view details

push time in 11 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha 1e91a740b6f82d7a83a58ba0be823a0adc3480c0

#load, #rows, #cols

view details

push time in 12 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha dc86be3a8a29317daf71e9c642f7d14c1ff78b64

example screenshots

view details

push time in 12 days

push eventNakilon/pagerecognizer

Victor Maslov

commit sha d42b7b98b45a81350f4049938aac1b94891653b5

#recognize and #visualize

view details

push time in 12 days

issue openedrubycdp/ferrum

Proper way to ensure that the page is loaded and ready to work with?

require "ferrum"

br = Ferrum::Browser.new headless: false
br.goto "https://google.com/"
br.at_css("input[type=text]").focus.type "Ruby", :enter
sleep 2
br.at_css("body")

If I decrease sleep to 1 or remove the line at all it throws:

ferrum-0.9/lib/ferrum/browser/client.rb:46:in `command': Timed out waiting for response. It's possible that this happened because something took a very long time (for example a page load was slow). If so, setting the :timeout option to a higher value might help. (Ferrum::TimeoutError)

created time in 12 days

issue commentrvm/rvm1-capistrano3

Not checking out gems installed from git

Got the same problem after I specified the branch -- without ref it worked without an issue.

itay-grudev

comment created time in 12 days

create barnchNakilon/ferrum

branch : false

created branch time in 12 days

create barnchNakilon/ferrum

branch : temp

created branch time in 12 days

issue commentrubycdp/ferrum

browser.css(...) #=> undefined method `compact' for "(cyclic structure)":String

Maybe the issue will be gone if somehow avoid returning the injectedScriptId but I don't understand where it even comes from into the object I return.

ttilberg

comment created time in 13 days

issue commentrubycdp/ferrum

browser.css(...) #=> undefined method `compact' for "(cyclic structure)":String

I'm porting my thingy from Selenium::Webdriver to Ferrum. It returns lots of nodes from JS but since it returns them in a single object it all becomes CyclicObject that is impossible to inspect. I edit the cycled? JS, using JSON.stringify and currently I suppose it stucks on some injectedScript that is by Ferrum and is recursive. Very hard to tell. I'm debugging it for two days already. I wish there was CyclicReference instead of CyclicObject, similar to how Ruby's inspection works. Looks like the problem is that JS traversing and Ruby traversing are different processes. JS is capable to detect cycle but this information is needed in Ruby. Also the reduce_props looks overcomplicated.

ttilberg

comment created time in 13 days

startedtailwindlabs/heroicons

started time in 13 days

startedAlexWayfer/flame

started time in 13 days

pull request commentrubycdp/ferrum

resolves #112

The cookies test fails in master.

Nakilon

comment created time in 13 days

PR opened rubycdp/ferrum

resolves #112

seen should not accumulate while going through object tree branches.

+27 -23

0 comment

2 changed files

pr created time in 13 days

push eventNakilon/ferrum

Victor Maslov

commit sha 3d5f991a92b10d7537da0401a7a49c4d233703ba

resolves #112

view details

push time in 13 days

fork Nakilon/ferrum

Headless Chrome Ruby API

https://ferrum.rocks

fork in 13 days

issue openedrubycdp/ferrum

Why does it return Ferrum::CyclicObject?

br = Ferrum::Browser.new
br.goto "https://google.com"

br.evaluate "( function(node){ return {a: 1, b: 2} } )(arguments[0])", br.at_css("div")
#=> {"a"=>1, "b"=>2}
br.evaluate "( function(node){ return {a: node, b: node} } )(arguments[0])", br.at_css("div")
#=> #<Ferrum::CyclicObject JavaScript object that cannot be represented in Ruby>
br.evaluate "( function(node){ return [node, node] } )(arguments[0])", br.at_css("div")
#=> [#<Ferrum::Node @target_id="E9B599ACCDC0B7F5DC344C424296C6C0" @node_id=10 @description={"nodeId"=>0, "backendNodeId"=>59, "nodeType"=>1, "nodeName"=>"DIV", "localName"=>"div", "nodeValue"=>"", "childNodeCount"=>2, "attributes"=>[]}>, #<Ferrum::Node @target_id="E9B599ACCDC0B7F5DC344C424296C6C0" @node_id=10 @description={"nodeId"=>0, "backendNodeId"=>59, "nodeType"=>1, "nodeName"=>"DIV", "localName"=>"div", "nodeValue"=>"", "childNodeCount"=>2, "attributes"=>[]}>]

created time in 13 days

create barnchNakilon/pagerecognizer

branch : master

created branch time in 14 days

created repositoryNakilon/pagerecognizer

[WIP] website page structure recognizer

created time in 14 days

startedrubycdp/ferrum

started time in 14 days

starteddhamaniasad/HeadlessBrowsers

started time in 14 days

startedyoupy/ruby-lastfm

started time in 14 days

starteduu59/ansi-to-html

started time in 14 days

startedjinzhu/inflection

started time in 17 days

startedvaiorabbit/ruby-opengl

started time in 17 days

push eventNakilon/reddit_bot

Victor Maslov

commit sha 9f12a6cf8a35e4defcb327a1788fda110445cd57

stupid Reddit API

view details

push time in 17 days

push eventNakilon/directlink

Victor Maslov

commit sha 309ccd09806d64a01c0067e1f80c2c56b976e20f

removed Reddit gallery throws DirectLink::ErrorNotFound

view details

push time in 17 days

created tagNakilon/reddit_bot

tagv1.7.7

PRAW sucks

created time in 17 days

push eventNakilon/reddit_bot

Victor Maslov

commit sha 88cee45ea0e8ab406aefbdf5f749c61b6e874e4d

seems like ~> does not work for higher parts of semver

view details

push time in 17 days

push eventNakilon/reddit_bot

Victor Maslov

commit sha 097278500b051d7e5c0cd7c3e58a367082bfee18

I guess this ratelimit header is handled since May 2018 https://github.com/Nakilon/nethttputils/commit/37ca2be4795979696f3599f0347ea0b56074674e

view details

Victor Maslov

commit sha 6be5be5333d0ab09678c36d3e3c258f663a6a62e

fixed parsing the tweet id of a retweet

view details

push time in 17 days

push eventNakilon/reddit_bot

Victor Maslov

commit sha bda9f7d8f11608467bf48855be2561c5fc5d5f19

stopping the bot by a PM

view details

push time in 17 days

startedakihikodaki/cld3-ruby

started time in 21 days

push eventNakilon/www-nakilon-pro

Victor Maslov

commit sha 67d655e3e58544c9994ddb08a3a675b062ef9045

real map of X-10

view details

push time in 25 days

push eventNakilon/stalker-maps

Victor Maslov

commit sha b119940c0b2e74f00e08bf5168177092bd1ff7f6

split in two levels by -12 histogram dip

view details

Victor Maslov

commit sha a1763821b30d5e857265c8f9fca47461c7deeed5

made the first ever orthogonal map of X-10

view details

push time in 25 days

push eventNakilon/stalker-maps

Victor Maslov

commit sha ee587d1067024da7aca478ac5b5b1cf1c79a0274

made the .obj joiner

view details

push time in 25 days

push eventNakilon/stalker-maps

Victor Maslov

commit sha d1376eb9500073dfed4359d227711a033e29d05b

draft of .obj joiner

view details

push time in 25 days

startedwillianjusten/awesome-svg

started time in a month

pull request commentlibvips/ruby-vips

Do not use `env` for script shebangs

macOS have introduced the "sip protection" that made impossible to edit built-in Ruby code and install gems so people switched to rbenv. Alpine compiles my gem in such way that when I require .so file it throws symbol not found: ... exceptions since Ruby 2.4. I'm yet to figure out how to fix.

pvalena

comment created time in a month

pull request commentlibvips/ruby-vips

Do not use `env` for script shebangs

I really wonder what's "broken and horrible" about Ruby on Alpine ) In fact I'm having a difficulty to compile my native extension on it and would love to know other pitfails.

pvalena

comment created time in a month

push eventNakilon/reddit_bot

Victor Maslov

commit sha b2935530e7e394b28071ba0e26a5617a86d83fbd

using DirectLink::NORMAL_EXCEPTIONS

view details

push time in a month

push eventNakilon/reddit_bot

Victor Maslov

commit sha c2b8653e391367652d90b2b28a15492768527873

weakening nethttputils version dependance

view details

push time in a month

push eventNakilon/directlink

Victor Maslov

commit sha 606f4a395a341f43ec422ebaf51ba2a01d0fc993

handling the NetHTTPUtils::EOFError_from_rbuf_fill

view details

push time in a month

created tagNakilon/nethttputils

tagv0.4.1.0

had to gemify this

created time in a month

push eventNakilon/nethttputils

Victor Maslov

commit sha e6322cc0a11974787006b59927f1b65235349ade

handling the old Ruby empty backtrace EOFError exception from net/protocol.rb

view details

push time in a month

startedreturntocorp/semgrep

started time in a month

starteddblock/ruby-enum

started time in a month

starteddanluu/post-mortems

started time in a month

push eventNakilon/directlink

Victor Maslov

commit sha b132aa52130388d6b01219bcd7a9c371f82ce7af

polishing vk regex

view details

push time in a month

push eventNakilon/www-nakilon-pro

Victor Maslov

commit sha cdc9a72501bf8a0e3130573501d8e05f7e4616e2

copied http://kopateli.net/blog/search/5.html from webarchive

view details

Victor Maslov

commit sha 0f8ceace2c2363175fff5562ada508a056590d17

original htm obtained with https://superuser.com/a/828908/47962

view details

Victor Maslov

commit sha f4b53282082746a0186ae99ceb04c06a0a281630

fixed links to point to files folder from webarchive

view details

Victor Maslov

commit sha f0a79cddc51b3c04bc1910240661caf6f2970d94

removed scripts, favicon, some hrefs, onclicks

view details

Victor Maslov

commit sha e60adb4614eacdfdacffda222b9992a99898e519

UnCSS

view details

Victor Maslov

commit sha 58f077a48eba0ed99d7e1fd72ca8b0ab43945931

base64d all images; removed invisible form login; removed update-comments thingy

view details

Victor Maslov

commit sha caf67c9bdb1d892530e5f5a1b023add30240b74d

renamed files

view details

Victor Maslov

commit sha d893fae62235241bb2e64db006fcf76a91a2bd64

removed some hrefs

view details

push time in a month

startedthelounge/thelounge

started time in a month

CommitCommentEvent

startedmrubyc/mrubyc

started time in a month

startedmrubyc/mrubyc

started time in a month

startedasciidoctor/asciidoctor

started time in a month

starteduncss/uncss

started time in a month

startedavinashbot/redd

started time in a month

startedfakefs/fakefs

started time in a month

push eventNakilon/reddit_bot

Victor Maslov

commit sha 53eb32e6e9149363703fbe626662f7aaa736840a

skipping everything lighter than 2MB

view details

push time in a month

startedlagmoellertim/unsilence

started time in a month

startedsickcodes/Docker-OSX

started time in a month

startedboriel/zxbasic

started time in a month

startedvcmi/vcmi

started time in a month

startedenspirit/bmg

started time in a month

more