Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Milouse 😺:ruby:

@milouse@ruby.social
mastodon 4.7.3
  • Open on ruby.social

#ruby, #python and #lisp (#emacs) developper, ex #scout leader #sgdf, interested in #openweb, #semanticweb, #privacy and #socialeconomy.

Mainly here to discover and share new things about ruby and crystal languages.

My generic purpose account is @milouse@boitam.eu

8 Followers
21 Following
9 Posts
Joined November 06, 2022
Homepage:
https://etienne.depar.is
Repositories:
https://git.umaneti.net
Pronouns:
He/Him
Lang:
fr, en
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 39mo ago

#ruby #tips I just learn about $PROGRAM_NAME == __FILE__ trick and it makes me try a little something, which can be helpful sometime: how to bundle every aspect of a ruby app (libs, execs and tests) in a single file, which behaves differently following the caller context https://etienne.depar.is/a-ecrit/ruby-one-file-app.html

etienne.depar.is
2
0
2
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 22mo ago

I just published a new blog article about the integration of #RVM with #fishshell. It works very well together and I’m happy of my new setup :)

https://etienne.pflieger.bzh/a-ecrit/rvm-and-fish-shell.html

(⚠️ answers to this toot will appear on my blog as well)

etienne.pflieger.bzh
0
0
1
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 29mo ago

I just published a new article on how to parse zsh history file. The subtility being how it stores some chars internally.

https://etienne.depar.is/a-ecrit/parse-zsh-history-file-in-ruby.html

💡 Answering to this message will make yours appear on my blog.

etienne.depar.is
0
0
0
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 31mo ago

@remi@ruby.social securitay 🙃

0
0
0
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 31mo ago

@remi@ruby.social I always wondered if they were not using some kind of old cross domain cookie setting, now ignored by browser cookie protection (on firefox at least, don't know for others)

0
0
0
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 42mo ago

Quick saturday night question. I have a little doubt about the best solution to concatenate lot of strings together.

Since a long time, I’m used to put all the strings in an array and call the join method on it:

["test", var1, "tutu", …].join

However I don’t find a lot of reference to this way of doing on the net… Every guides or benchmark seems to only considerate concatenation with + or string interpolation.

Is my method really bad? Does anyone else do the same?

0
0
0
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 45mo ago

I just learnt how object instanciation really work (i.e. what happen when calling .new on a class) 🤩 https://zverok.space/blog/2023-01-03-data-initialize.html

It is not what you expect, but it is what you want: how Data#initialize is designed
zverok.space

It is not what you expect, but it is what you want: how Data#initialize is designed

A description of a curios core class design decision made for happier coding

0
0
0
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 47mo ago

Just migrate my unshortening url service¹ from #sinatra to #roda without any trouble 😊

I also rewrite my stylesheet to be build upon my fork of #milligram ², now respecting user color scheme preference ☀️🌙

¹ https://unshorten.umaneti.net
² https://github.com/milouse/centigram

unshorten.umaneti.net
0
0
1
0
Open post
Milouse 😺:ruby: @milouse@ruby.social
· 47mo ago

#Howto Enumerable#map_with_index:

Enumerable.each_with_index.map…

Exemple:

test = ['salad', 'potato']
test.each_with_index.map do |value, index|
"#{index} - #{value}"
end # => ['0 - salad', '1 - potato']

#tip #ruby

0
0
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Pricing
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 14:32:08 UTC