DevHeads.net

Talk

Earn $100-$500 per month

Great Offer!!!
Now you can earn $100-$500 per month with virtualofficejob.com.Here has many choice for you.You can get job absolutely free. Visit this page website:<a href="http://www.virtualofficejob.com/affiliate.php?id=FR30366"target="_blank"></a>Free job for you!

Free job

Free job for you!
Are you want any Internet home job?It is perfect job for you. Absolutely free and easy job here. To know more about this Please visit this page website:<a href="http://www.virtualofficejob.com/affiliate.php?id=FR30366"target="_blank"=></a>

Free job

Great offer for you. Are you want to do a Internet job?It's for you.

So try Virtualofficejob.com and enjoy it...

Design Question / Challenge - From SmartPy Contract to Yes, It's Just Ruby - Let's Play Nim (The Ancient Math Subtraction Game)

Hello,

Here's another design question / challenge:

Turn the SmartPy contract that lets you play Nim (the ancient math
subtraction game) into a "Yes, It's Just Ruby" version.

Talk Notes - The State of Bool in Ruby - Everything Your Never Wanted to Know

Hello,

For the Vienna.rb April meetup I've put together talk notes on:
The State of Bool in Ruby - Everything Your Never Wanted to Know [1].

The contents reads:

- Trivia Quiz - The States of Bool
- Bool Basics
- Classes, Classes, Classes
- Truthy and Falsy - (Almost) Everything is True
- The state of built-in bool conversions - `to_s`, `to_i`,
`to_b`, `to_bool`
- safebool Library / Gem
- Prior Art
- Some Older Bool / Boolean Libraries
- `ActiveRecord::Type::Boolean < Value`
- Bool Conversion
- Empty String
- Number Two
- Choose

RailsConf 2019

Hey,

Who’s going to RailsConf 2019 this year? This will be my first RailsConf, looking forward to meeting everyone!

Cristian

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Ruby Conferences 'n' Camps in 2019 Update - What's Upcoming in April? What's News?

Hello,

I've updated the Ruby Conferences 'n' Camps in 2019 - What's Upcoming? [1]
Calendar page @ Planet Ruby.

What's News? Added Deccan RubyConf (in August in Pune, Maharashtra, India),
RubyConf Colombia (in September in Medellín, Colombia), and more.

Happy meeting up with rubyists in 2019. Cheers. Prost.

PS: Do you have a favorite conference?

Design Question - multiple XML parsers/ dependencies

Hi Guys,

We have an API that returms XML and we'd like to build a client library
for it so that we can use it in multiple projects. The current
implementation uses Rexml for the parsing but we tried Ox and it's
really fast(!!). However, since it's native, the installation doesn't
always work as smoothly, especially on Windows. So, I wanted to see if
we could support Ox if the user installs it and use Rexml as the normal way.

How should we organise such code? Would it basically be two internal
implementations selected based on a parameter, or detection of the
installation?

safebool gem / library - safe bool(ean) type adds Bool(), to_b, to_bool, bool?, false?, true?, true.is_a?(Bool)==true, false.is_a?(Bool)==true, and more

Hello,

I've bundled up all the bool(ean) "hacks" in the safebool gem / library [1]
The new safe bool(ean) type adds Bool(), to_b, to_bool, bool?, false?, true?,
true.is_a?(Bool)==true, false.is_a?(Bool)==true, and more.

From the readme:

Why Bool in Ruby?

```
false.class #=> FalseClass
true.class #=> TrueClass
false.is_a?(Bool) #=> NameError: uninitialized constant Bool
true.is_a?(Bool) #=> NameError: uninitialized constant Bool
true.class.ancestors #=> [TrueClass, Object, Kernel, BasicObject]
false.class.ancestors #=> [TrueClass, Object, Kernel, BasicObj

Hi!

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

enums v1.2 library / gem adds (enum) flags w/ bitwise-operators for set (|) / unset (&~) / toggle (^)

Hello,

I've added (bit) enum flags with bitwise-operators
for set (|) / unset (&~) / toggle (^) to the enums library / gem [1].

Use the new flags option for the enum helper or the new Flag class.

Using each_with_object or inject with a hash object

Hello,

I'm trying to use each_with_object with a hash initialized using the
Hash.new syntax with an implicit block.
I'm expecting an empty array to be initialized whenever I attempt to access
a new key but my results are a bit different.

Detecting lost connections in TCPServer connection

I have some code similar to the following:

#!/usr/bin/env ruby

require 'socket'

server = TCPServer.new('localhost', 2000)

loop do
Thread.start(server.accept) do |client|
puts 'Client connects'

loop do
s = client.gets
break if s.index('quit') == 0
client.puts "Hello #{s}"
end

puts 'Client disconnects'

client.close
end
end

When this runs a new connection will spawn a new thread.

ruby_parser 3.13.1 Released

ruby_parser version 3.13.1 has been released!

* home: <https://github.com/seattlerb/ruby_parser>
* bugs: <https://github.com/seattlerb/ruby_parser/issues>
* rdoc: <http://docs.seattlerb.org/ruby_parser>

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension).

Deprecating `chromedriver-helper` in favor of `webdrivers`

Hello, Rubyists.

I'd like to notify the Ruby community that I intend to end support for the
`chromedriver-helper` gem [1], and deprecate it in favor of the
`webdrivers` gem [2].

A to-do list, a timeline, and the rationale for deprecation is here:

<a href="https://github.com/flavorjones/chromedriver-helper/issues/83" title="https://github.com/flavorjones/chromedriver-helper/issues/83">https://github.com/flavorjones/chromedriver-helper/issues/83</a>

I welcome your comments on that GitHub issue, and thank everyone who has
used `chromedriver-helper` over the years, and everyone who's expressed
support for this decision.

Cheers,
-m

[1]: <a href="https://github.com/flavorjones/chromedriver-helper" title="https://github.com/flavorjones/chromedriver-helper">https://github.com/flavorjones/chromedriver-helper</a>
[2]: <a href="https://github.com/titusfortner/webdri" title="https://github.com/titusfortner/webdri">https://github.com/titusfortner/webdri</a>

optparse question: how to warn of missing positional arguments

Hello,

My goal is to force a display of the banner (usage string) when a
positional parameter is not present; in the sense of ARGV[1] == nil

An possible way would be to force the OptionParse.new block parse to fail
if ARGV[1] == nil. How to do this properly in Ruby?

I love Ruby so much! Thx all!
az

Ruby game engine

Hello!

I am writing a 3D game engine, instead of writing it in C++ and making a binding I am doing it directly in Ruby. I never saw anything similar so I don't know if is a good idea and if is going to work. Until now it's working.

In my engine I have a code similar to this:

Engine::init do
character_mesh = Engine::Mesh.new("/path/to/mesh")
Engine::run
end

 The 'Engine::init' initialize systems like Vulkan before executing the code block and finalize those systems after the code block exit.

ruby_parser-legacy 1.0.0 Released

ruby_parser-legacy version 1.0.0 has been released!

* home: <https://github.com/zenspider/ruby_parser-legacy>
* rdoc: <http://docs.seattlerb.org/ruby_parser-legacy>

ruby_parser-legacy includes the ruby 1.8 and 1.9 parsers from
ruby_parser (now removed) and plugs them into the existing system.

Changes:

### 1.0.0 / 2019-03-11

* 1 major enhancement

* Birthday!

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

How do you feel about utf-8 in ruby code?

Is this acceptable?

'a⟶b'.to_sym == :a⟶b

Granted, this is a simplistic example, but how do you feel about using
utf-8 in the ruby code itself?

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

AUTO: Joerg Meidl is out of the office (Rückkehr am 16.03.2019)

Ich kehre zurück am 16.03.2019.

Sehr geerhte Damen und Herren!

Ich bin von 14.03.2019 bis 16.03.

Gem of the Week - hexapdf - Read and Write PDF Documents; Merge, Extract, Optimize and Much More

Hello,

I'm restarting (and updating) the Gem of the Week Series [1]
that highlights a new ruby library every week on Thursdays.

Let's welcome the hexapdf gem / library and command line tools [2a][2b] -
read and write PDF documents; start from zero or merge, extract,
optimize and much more.

Thanks to Thomas Leitner for the write-up (and the great gem).

Happy coding with ruby. Cheers.

hoe 3.17.2 Released

hoe version 3.17.2 has been released!

* home: <http://www.zenspider.com/projects/hoe.html>
* code: <https://github.com/seattlerb/hoe>
* bugs: <https://github.com/seattlerb/hoe/issues>
* rdoc: <http://docs.seattlerb.org/hoe/>
* doco: <http://docs.seattlerb.org/hoe/Hoe.pdf>
* other: <http://github.com/jbarnette/hoe-plugin-examples>

Hoe is a rake/rubygems helper for project Rakefiles. It helps you
manage, maintain, and release your project and includes a dynamic
plug-in system allowing for easy extensibility.

Rails 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1, and 6.0.0.beta3 have been released!

Hello everyone!

Rails 4.2.11.1, 5.0.7.2, 5.1.6.2, 5.2.2.1, and 6.0.0.beta3 have been released! These contain the following important security fixes.

ruby_parser 3.13.0 Released

ruby_parser version 3.13.0 has been released!

* home: <https://github.com/seattlerb/ruby_parser>
* bugs: <https://github.com/seattlerb/ruby_parser/issues>
* rdoc: <http://docs.seattlerb.org/ruby_parser>

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing
racc--which does by default use a C extension).

sexp_processor 4.12.0 Released

sexp_processor version 4.12.0 has been released!

* home: <https://github.com/seattlerb/sexp_processor>
* rdoc: <http://docs.seattlerb.org/sexp_processor>

sexp_processor branches from ParseTree bringing all the generic sexp
processing tools with it. Sexp, SexpProcessor, Environment, etc... all
for your language processing pleasure.

Changes:

### 4.12.0 / 2019-03-12

* 3 bug fixes:

* Fixed sexp_body to return empty sexp instead of nil when using STRICT_SEXP.
* STRICT_SEXP=4+ fails w/ current use of concat.

ruby2ruby 2.4.2 Released

ruby2ruby version 2.4.2 has been released!

* home: <https://github.com/seattlerb/ruby2ruby>
* rdoc: <http://docs.seattlerb.org/ruby2ruby>

ruby2ruby provides a means of generating pure ruby code easily from
RubyParser compatible Sexps. This makes making dynamic language
processors in ruby easier than ever!

Changes:

### 4.12.0 / 2019-03-12

* 3 bug fixes:

* Fixed sexp_body to return empty sexp instead of nil when using STRICT_SEXP.
* STRICT_SEXP=4+ fails w/ current use of concat. Removed concat from strictness for now.
* Use concat internally instead of splat.

ruby2ruby 2.4.2 Released

ruby2ruby version 2.4.2 has been released!

* home: <https://github.com/seattlerb/ruby2ruby>
* rdoc: <http://docs.seattlerb.org/ruby2ruby>

ruby2ruby provides a means of generating pure ruby code easily from
RubyParser compatible Sexps. This makes making dynamic language
processors in ruby easier than ever!

Changes:

### 4.12.0 / 2019-03-12

* 3 bug fixes:

* Fixed sexp_body to return empty sexp instead of nil when using STRICT_SEXP.
* STRICT_SEXP=4+ fails w/ current use of concat. Removed concat from strictness for now.
* Use concat internally instead of splat.

Vienna.rb Talks Notes - Contracts, Contracts, Contracts - Code Your Own (Crypto Blockchain) Contracts w/ Ruby (sruby), Universum & Co

Hello,

World premiere! The world's first official (secure) ruby talk happened at
the Vienna Ruby (Crypto) meetup tonight. The talk agenda / notes read:

- What's a (Smart) Contract?
- Code is Law?
- Contract-Oriented Programming Languages
- Genesis - Bitcoin Script
- Ivy - Higher-Level Bitcoin Script
- History Corner - Bitcoin - The World's Worst Database for
Everything? - Bitcoin Maximalism in Action
- Turing Complete and the Halting Problem
- Fees, Fees, Fees - $$$ - There's No Free Lunch
- What's the World's Most Popular Programming Language?

units-time library / gem v1.0 - units of time (in epoch time) for secure ruby (sruby)

Hello,

I've put together a "standalone" library / gem for
units of time (in epoch time) incl.

Awesome Rubies Updated (Now Incl. mruby/c, sruby (s6), and More)

Hello,

I've updated the Awesome Rubies [1] page that collects compilers,
interpreters, virtual machines, parsers, doc generators, version
managers, and more.

What’s news? Let’s welcome mruby/c, sruby (s6) and more.

Anything missing? Contributions welcome. Let us know.

Happy coding with rubies. Cheers. Prost.

[1] <a href="https://github.com/planetruby/awesome-rubies" title="https://github.com/planetruby/awesome-rubies">https://github.com/planetruby/awesome-rubies</a>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

issue with nailgun

Hi,

I have JRuby-9.1.17.0 installed on Linux-Red Hat Enterprise Linux Server
7.6 (Maipo).

I am trying to use nailgun to run some Ruby shell scripts from the
command line
but I found a problem.

A free Ruby programming book in Epub

Hello All,

I have released my book I Love Ruby in epub format. You may get it here
<a href="https://i-love-ruby.gitlab.io/epub.epub" title="https://i-love-ruby.gitlab.io/epub.epub">https://i-love-ruby.gitlab.io/epub.epub</a>

I will discontinue the e-book edition on Amazon here
<a href="https://www.amazon.com/dp/B07NGY8PZ5" title="https://www.amazon.com/dp/B07NGY8PZ5">https://www.amazon.com/dp/B07NGY8PZ5</a> , as it forces me to enter a cost for
a book that can be distributed free of charge.

I would be very happy if people can send me feedback and suggestions to
improve this book.

unicorn 5.5.0 - Rack HTTP server for fast clients and

unicorn is an HTTP server for Rack applications designed to only serve
fast clients on low-latency, high-bandwidth connections and take
advantage of features in Unix/Unix-like kernels.

enums 1.0 library / gem - safe enumeration types for ruby e.g. enum :Color, [:red, :green, :blue]

Hello,

I've put together a new enums library / gem [1] for safe
enumeration types in ruby.

Yes, enums are just a set of symbolic keys bound to unique integer numbers.
Why not just use symbols :-) or constants? Do we really need a new enum type
and (yet another) library?

Ruby Roles in Germany

Hi All,

I have a few Ruby based roles in Germany (more specifically in Berlin).

If you’re looking for a new job in Berlin, feel free to send across your CV and a bit on what you’re looking for in your next role (maybe industry, working environment, salary, perks etc.) I can see if I have anything that suits.

Thanks,
Nadia Woods
Market Specialist
Sigmar IT International
Liber House, Monavalley Business Park, Tralee, Kerry, Ireland, V92 NN80
T: +49 692 222 179 04 I E: ... at sigmar dot ie<mailto: ... at sigmar dot ie> I W: www.sigmarrecruitment.com<http://www.sigmarrecruitment.com/>

Ruby on Rails Developer Needed in Chennai, India

Hello All,

Requirements for the job is here:
<a href="https://mindaslab.github.io/2019/02/27/ruby-on-rails-developer-needed-in-chennai.html" title="https://mindaslab.github.io/2019/02/27/ruby-on-rails-developer-needed-in-chennai.html">https://mindaslab.github.io/2019/02/27/ruby-on-rails-developer-needed-in...</a>

(Secure) Ruby Quiz - Code Challenge #3 - Powerball Mega Millions Grand Prize - Create a Power Play Contract for America's Most Popular Lottery

Hello,

It's Friday. (Secure) Ruby Quiz Time!

Let's use America's most popular lottery - Powerball Mega Millions -
and make it provable fair by - surprise, surprise -
putting the machinery on the blockchain with a contract script in
(secure) ruby, of course [1].

First let's warm-up with the simplest possible lottery
from the book "Building Games with Ethereum Smart Contracts"
by Kedar Iyer and Chris Dannen.

Join us. Question or comments welcome.
Note, the ruby-talk mailing list right here is the "official" sruby channel.

Cheers. Prost.

Gem for segmented SFTP file downloads?

I'm trying to build a utility that will fetch large files or directories
off of a seedbox (or any SSH server, for that matter).
Individual connections are throttled,
so I have traditionally relied on a CLI utility called LFTP
to split large files into smaller segments to be downloaded in parallel.

I get the sense that nothing really compares to `Net::SFTP`,
but it doesn't look like it natively supports segmented downloads.
Does anyone know of a gem that does?

Alternately, I'm considering writing my own gem
to extend `Net::SFTP` to add support for segmented downloads.
But in order for this to

(Secure) Ruby to Solidity (Source-to-Source) Cross-Compiler Cheat Sheet / White Paper

Hello,

I've started a new white paper / cheat sheet on
a (secure) ruby to solidity (source-to-source) cross-compiler [1].

If anyone is interested in how to turn ruby into solidity (and
ethereum virtual machine (evm) bytecode) let us know!
Question or comments welcome. Yes, the ruby-talk mailing list
right here is the "official" sruby channel.

Cheers.

Do you believe that the Plain English language is better than Ruby language?

Hi!

Do you believe that the Plain English language is better than Ruby language?

If not, why not?

The Plain English language website is <a href="http://www.osmosian.com" title="www.osmosian.com">www.osmosian.com</a>

Designing sruby (Secure Ruby) - Use ivars (@balance) or Storage class (storage.balance) for (Blockchain) State?

Hello,

If anyone follows along about the new ruby variant / flavor called sruby
- Small, Smart, Secure, Safe, Solid & Sound (S6) Ruby.

Here's a language design choice: How to track the contract's
(blockchain) state?

a) Let's (re)use ruby's ivars (object instance variables) e.g.:

def initialize
@owner = msg.sender
@counter = 0
@bets = Mapping.of( Integer => Bet )
end

or b) let's use a more "explicit" Storage class e.g.:

def initialize
storage[:owner] = msg.sender
storage[:counter] = 0
storage[:bets] = Mapping.of( Integer => Bet )
end

Ruby Quiz - (Crypto) Blockchain Contract Edition - Challenge #2 - Code Challenge #2 - Create a PonzICO Investment Contract - Blockchain Performance Art

Hello,

to kickstart the new ruby quiz (crypto) blockchain contract edition
let's add another (easier) coding challenge:

Challenge #2 - Create a PonzICO Investment Contract - Blockchain
Performance Art [1]

Let's use the live and "real world" blockchain performance art
PonzICO investment contract [2] running on the Ethereum world computer.

Read the PonzICO White Paper [3] for how the investment scheme and
dividend payouts work and what your money will get used for (hint:
thanks for the free Tesla - don't forget to vote on the color :-) and
maybe a two bedroom condo in San Franc

safestruct gem - Safe Data Structures (Array, Hash, Struct) - Say Goodbye to Null / Nil (and the Billion Dollar Mistake)

Hello,

I've put together a new safestruct gem / library [1] that collects
safe data structures (array, hash, struct)
and lets you say goodbye to null / nil (and maybe)
to fix the billion dollar mistake.

How can the code work without nil?

Let's say hello to zero :-).
The new rule for NO null/nil ever (again) is:

**All variables - including structs, arrays and mappings (hash
dictionaries) -
MUST ALWAYS get set (initialized) to ZERO (default) values.**

What's zero?

|----------------|----------------------------|
| Type | Value |
|----

need to advice: about gmail trash empty

Hellow^^^

my mailbox is Google Apps (Gmail). it is now full (almost 98%). most
messages are trash folder. just i did try to remove all trash messages
permantly on the web. but web browser was freeze. so i thank a
while. yes i have to ruby script!!! i like ruby but just i am newbie
level. so please advise any comments about empty trash gmail with
ruby. currently i use ruby 2.5 on ubuntu 18.04, hardware is chromebook [arm64].

any comments welcome!!! thanks in advance,,,

Sincerely,

Byung-Hee from South Korea

Ruby Quiz - (Crypto) Blockchain Contract Edition - Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract

Hello,

I've started a new ruby quiz for secure (crypto) contract blockchain
scripting [1].

Challenge #1 - Create a 3x3 Tic-Tac-Toe Player vs Player Game Contract

Let's use the "Creating a Tic-Tac-Toe Smart Contract" [2] tutorial
and "real-world" sample contract from the EOS.IO blockchain.

The challenge: Code a contract for a 3x3 tic-tac-toe player vs player game
using sruby :-).

Can you do better (than the EOS.IO C++ "monster")?

Post your code snippets (or questions or comments) on the "official"
Ruby Quiz Channel,
that is, right here on the ruby-talk mailing list.

Cheers.

Hacked

Some of my servers have been hacked and running a monero(?) coin miner. It
creates a directory
called /tmp/systemd-private-60ffef34724f43b19fa2d3962b83687e-systemd-timesyncd.service-sPMHHT
(or similar)

Also at the same time a /tmp/bundle directory is created

Do these seem related? Does anyone have an idea on this?

JRuby 9.2.6.0 Released

The JRuby community is pleased to announce the release of JRuby 9.2.6.0

Homepage: <a href="http://www.jruby.org/" title="http://www.jruby.org/">http://www.jruby.org/</a>
Download: <a href="http://www.jruby.org/download" title="http://www.jruby.org/download">http://www.jruby.org/download</a>

JRuby 9.2.x is our new major version of JRuby. It is expected to be
compatible with Ruby 2.5.x and stay in sync with C Ruby. JRuby 9.2.0.0 is
our first release for 2.5 support.

If you do find issues then report them on using our issue tracker at
<a href="http://bugs.jruby.org" title="http://bugs.jruby.org">http://bugs.jruby.org</a>. We also encourage users to join our IRC channel
(#jruby on Freenode) and mailing lists.

I Love Ruby Print edition is out

Hello Folks,

My Ruby book for beginners print edition is out. You may get it here
<a href="https://www.amazon.com/dp/1796378429/" title="https://www.amazon.com/dp/1796378429/">https://www.amazon.com/dp/1796378429/</a> . Please note that free web version
is available here <a href="http://i-love-ruby.gitlab.io/" title="http://i-love-ruby.gitlab.io/">http://i-love-ruby.gitlab.io/</a> . This edition is for those
people who love to hold paper in their hands.

And thank you to all those who gave me encouraging words and critism, its
helping me top improve every day. I will work on my book more to bring
Design Patterns topic to my print edition soon.

prettier for Ruby

Hi Ruby community,

I've released a plugin for prettier that supports the Ruby language, and it
got merged into the prettier org this morning. It's here:
<a href="https://github.com/prettier/plugin-ruby" title="https://github.com/prettier/plugin-ruby">https://github.com/prettier/plugin-ruby</a>. Instructions for usage and more
descriptions of what prettier is are in the README, but a short version is
that prettier is an opinionated, deterministic formatter that integrates
with most editors. Let me know if you have any issues/questions/feedback.

I Love Ruby on Amazon

Hello All,

I have launched my Ruby programming book on Amazon here <a href="https://www.amazon.com/dp/B07NGY8PZ5" title="https://www.amazon.com/dp/B07NGY8PZ5">https://www.amazon.com/dp/B07NGY8PZ5</a> . It should be handy for Kindle unlimited readers. Please don't pay to buy it as the free version is available here <a href="https://i-love-ruby.gitlab.io/" title="https://i-love-ruby.gitlab.io/">https://i-love-ruby.gitlab.io/</a>

- Karthikeyan A K

Sent with [ProtonMail](<a href="https://protonmail.com" title="https://protonmail.com">https://protonmail.com</a>) Secure Email.

sruby – Simple, Secure and Solid Ruby: Run Ruby Contract / Transaction Scripts on the Blockchain / World Computer

Hello,

I've published a new red paper [1] that introduces the new sruby
version / flavor.

What's sruby?

sruby - short for simple, secure & solid ruby - is a subset of mruby
that is a subset of "classic" ruby and lets you run contract /
transaction scripts on the blockchain (world computer).

Happy transacting with sruby. Questions and comments welcome. Cheers. Prost.

PS: Some sruby contract samples:

1) Hello, World!

Ruby 2.6.1 Released

Ruby 2.6.1 has been released.

## Changes

* [Net::Protocol::BufferedIO#write raises NoMethodError when sending
large multi-byte string](<a href="https://bugs.ruby-lang.org/issues/15468" title="https://bugs.ruby-lang.org/issues/15468">https://bugs.ruby-lang.org/issues/15468</a>) has
been fixed.

This release includes additional bug fixes.

That's why everybody is crazy about this

<a href="http://top.stussie.com" title="http://top.stussie.com">http://top.stussie.com</a> <http://top.stussie.com/>

Jim Hendi

TraceSpy - TracePoint + Pattern Matching API

<a href="https://github.com/baweaver/trace_spy" title="https://github.com/baweaver/trace_spy">https://github.com/baweaver/trace_spy</a>

Made a wrapper around TracePoint after playing with it for a while to make
it a bit easier to watch all types of different things.

Programming Crypto Blockchain Contracts (in Ruby) Step-by-Step Book / Guide. Let's Start with Ponzi & Pyramid Schemes...

Hello,

I've started a new (free online) step-by-step guide / booklet titled:

Programming Crypto Blockchain Contracts (with Ruby) Step-by-Step
Book / Guide. [1]
Let's Start with Ponzi & Pyramid Schemes. Run Your Own Lotteries,
Gambling Casinos and more on the Blockchain World Computer...

The first chapter about Ponzis & Pyramids is online with
ready-to-run contract scripts in ruby.

Free ebook about data structures in Ruby

Data structures from scratch. A brisk introduction to essential, advance
and persistent data structures using the Ruby programming language.

The text is a curated selection of articles intended for beginners and
self-taught programmers. It's not advanced nor academic material. It's just
a selection of articles from my blog bundled as an ebook for those looking
for an informal introduction to data structures.

Need to advice: i want to reduce code lines

Hi, i wrote some ruby codes that used hanwoo breeding. That is so long line. Is
that possible to reduce lines? And i'm new to ruby. Thanks in advance!!!

Here are the codes:
<a href="https://gitlab.com/soyeomul/hanwoo/raw/master/z001.rb" title="https://gitlab.com/soyeomul/hanwoo/raw/master/z001.rb">https://gitlab.com/soyeomul/hanwoo/raw/master/z001.rb</a>

kramdown 2.0.0 released

## About kramdown

kramdown (sic, not Kramdown or KramDown, just kramdown) is a *free*
MIT-licensed [Ruby](<a href="http://www.ruby-lang.org" title="http://www.ruby-lang.org">http://www.ruby-lang.org</a>) library for parsing a
superset of Markdown.

It is completely written in Ruby, supports standard Markdown (with some
minor modifications) and various extensions that have been made popular
by the PHP Markdown Extra package and Maruku.

Homepage for installation instructions and documentation:
<a href="https://kramdown.gettalong.org" title="https://kramdown.gettalong.org">https://kramdown.gettalong.org</a>

## kramdown 2.0.0 released

This is a major release with breaking changes!

The most notable changes are that Ruby 2.3 is now required, R

Re: Ruby Quiz - Challenge #11 - Blockchain Contracts - Disassemble & Assemble Ethereum Virtual Machine (EVM) Opcodes / Bytecodes

Gerald Bauer wrote:
$ ruby -v lib/011.rb
ruby 2.6.0p0 (2018-12-25 revision 66547) [x86_64-linux]
Run options: --seed 51739
# Running:
...
Finished in 0.009713s, 308.8672 runs/s, 308.8672 assertions/s.
3 runs, 3 assertions, 0 failures, 0 errors, 0 skips

$ cat lib/011.rb
# frozen_string_literal: true
require_relative '../011/test.rb'

class RubyQuizTest
@@op2hex = Ethereum::Opcodes::TABLE
.transform_values{|v| v.to_s.freeze}

@@hex2op = Ethereum::Opcodes::TABLE.in

Why do we need #respond_to_missing?

Hi!

I was wondering why do we need #respond_to_missing? as a separate method. I
tried searching for a rationale in the Ruby bug tracker but couldn't find
it.

I don't understand how it's different from overriding #respond_to? to match
dynamic methods and calling super on other matches.

The answer I'm NOT looking for is that #method wouldn't work, etc. as this
is an answer to a different question ("Why do I need to override
#respond_to_missing?").

Why was Ruby designed in a way that introduces a distinction between
#respond_to? and #respond_to_missing?

Syndicate content