I regularly check our "Local" timeline to see what people on this instance are talking about:
https://ruby.social/web/public/local
This is a great way of finding people to follow - because you're on the same instance, chances are you have at least one shared interest
Once again, welcome everyone who's joined this week so far, and special thanks to @halfbyte and @andy_twosticks for contributing on our Patreon (https://www.patreon.com/bePatron?u=13237635) 🎉
Welcome to the new & returning ruby.social users. Hope we can engage better this time.
Please try to follow up other peers, create your #introduction and pin your toot.
Remember this is not a "new twitter" the idea is kind of different. You can check @feditips to get more insights about how the federation works and how to have a better integrated environments.
P.S. there's no edit feature, but you can delete & redraft as I did with this toot.
Renewed the http://rubymanor.org domain for another 9 years, because -- unlike Lanyrd -- cool URLs don't die.
The good folks at Planet Argon are running their Ruby on Rails survey again this year.
If you have a few minutes, share your answers at https://rails-hosting.com
```
#!/usr/bin/env ruby
time_to_wait = ARGV[0].to_i
loop do
display_attached = `system_profiler SPDisplaysDataType | grep "Thunderbolt Display"`.chomp.length > 0
if display_attached
puts "#{Time.now} - Detected external display: instructing computer to not idle-sleep to avoid crashing, for #{time_to_wait} seconds"
`caffeinate -i -t #{time_to_wait}`
else
puts "#{Time.now} - No display detected. Sleeping for #{time_to_wait} seconds"
sleep time_to_wait
end
end
```
Hello! Using my first toot to link to my PR with a fix for an edge case in Rails that also fixes an old demeter violation. https://github.com/rails/rails/pull/43760
Ruby on Rails has released v. 7.0!!
This time I had the honor & privilege to contribute with 8 commits.
I'm so grateful for maintainers and contributors who #keepRailsRelevant
https://rubyonrails.org/2021/12/15/Rails-7-fulfilling-a-vision
This past year I have been working on my spare time to build a web interface for Masto.host.
It's starting to come together and I expect in about a month to start running a closed beta test.
I have wrote more details here: https://masto.host/access-to-backups/
Any questions or suggestions please let me know.
This is all of the Ruby code you need:
#!/usr/bin/env ruby
require "http"
HTTP.auth("Bearer YourMastodonAccessTokenGoesHere")
.post("https://ruby.social/api/v1/statuses", :params => {:status => "You can toot to Mastodon using the HTTP gem in TWO lines. I'm doing it right now"})
I have turned on account moderation. I actually turned it on a few weeks ago, but then turned it off during #railsconf to make it easier for attendees to join.
However, less than a day later, an account appeared posting links which clearly broke the instance rules, so it's back to moderation again.
It's not actually that much trouble to approve the accounts, and it's vastly preferable to having to suspend abusive ones, so overall I think this was the right choice.
Anyway! Ruby!
I'm quite enjoying this year's remote version of #RailsConf - clever use of Discord gives a good sense of community even with most of the talks being pre-recorded.
Anyone else here "attending"? #rails
RT @therubygalaxy@twitter.com
Interested in speaking at Ruby Galaxy? Our CFP is now open!!Take a look at http://rubygalaxy.io 🛰
🐦🔗: https://twitter.com/therubygalaxy/status/1375518641714733059
Don't cache ActiveRecord objects: https://interblah.net/don-t-cache-activerecord-objects
Loving Ruby since 2002. or 2001. I really ought to figure it out.
I’m the admin for this instance - if you have any questions or problems, let me know!