Earn $100-$500 per month

Great Offer!!!
Now you can earn $100-$500 per month with has many choice for you.You can get job absolutely free. Visit this page website:<a href=""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=""target="_blank"=></a>

Free job

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

So try and enjoy it...

Ruby-based SAML

Is there a gem implementing the SAML standard the way PHP does (<a href="" title=""></a>)?

Here is my use case: Customer X wants to access a remote application (managed by a cloud vendor) through federated SSO. However Customer X doesn’t have any means to support SAML on their on-premise server. Alternatively, I could use OpenID Connect (OIDC), but I couldn’t find appropriate Ruby support for that either (and I don’t want to use PHP!).

Sent from mobile device - Pardon possible typos!

Ruby Fiddle on Windows

Hello guys
I need help in `Fiddle` it's really missing documentation and examples

I have the following code (
<a href="" title=""></a>)
The full error is right down the code
I'm trying to call Windows APIs and inject a raw code (shellcode) to run it
directly in the memory
I don't know if this error is a Ruby bug or there's an issue in my code

OS: Windows 10 - 32bit
Ruby version: 2.5.1p57

A python version above each line.
I'm really shocked that I needed more than 29 lines to deal with C library
for my case which is converting a 6-lines python script

mwrap 2.0.0 mwrap - LD_PRELOAD malloc wrapper for Ruby

mwrap is designed to answer the question:

Which lines of Ruby are hitting malloc the most?

mwrap wraps all malloc-family calls to trace the Ruby source
location of such calls and bytes allocated at each callsite.
As of mwrap 2.0.0, it can also function as a leak detector
and show live allocations at every call site.

File.join compared with Pathname#join

This difference was surprising to me:

irb (2.4.4)
require ‘pathname’‘foo’).join(‘/bar’)
=> #<Pathname:/bar>‘foo’).join(‘bar’)
=> #<Pathname:foo/bar>

File.join(‘foo’, ‘/bar’)
=> “foo/bar”
File.join(‘foo’, ‘bar’)
=> “foo/bar”

Is there a reasonable explanation that I can’t think of for this behavior?


Unsubscribe: <>

Key book re-writes?

A few Ruby books are aging; the pickaxe book is one favorite that could use
an update. Is there any push to update Key Ruby books, maybe in time for
Ruby 3?

Or am I just wishing harder than usual?


Class that opens and adds variables to instances of another class?

I think I'm trying to figure out the Decorator pattern. What I want is
to have a <thing> that takes an instance of <something> and changes it.

extract repeated text from string


I am working on an issue where i need to extract repeated text from an

The string is abcdefzfabcdefzfabcdefzf

I tried using forward lookup as /(?=(a.*f))/ but this extracts groups as :


However I am looking for output as :

Any clues ?


PowerStation: a tool for detecting performance bugs in rails apps

Hi all,

Just wanted to put in a shameless plug for a new tool called
PowerStation [1] that we built for detecting performance issues in Rails
applications. It is a static code analyzer that identifies and
automatically suggests fixes for many performance issues in Rails apps.
Our tool has been integrated into the RubyMine IDE [2] and can also run
as a command line tool as well. Please check out our blog post [3] if
you are interested.

Teaching people to code

Does anyone here have any recommendations for resources on teaching people to code?

I've kind of volunteered to teach Ruby to some of my co-workers. I'm good at _explaining_ but I'm rapidly discovering that there is a big gap between that and teaching.

Worse, it looks as if one of my students has never coded before.

Problem: do threads always run for at least TIME_QUANTUM_USEC before termination, on Linux?

I have a GUI project (Tk), which makes use of threads for performing
background filesystem searches based on a filename pattern.

My system is a 4 cores, on recent Linux; the interpreter is MRI 2.3.

At any given time, there should be at most one search background
thread, so the requests for new searches cause termination of the one
currently executing.

The search code is properly structured: it's a simple loop through
directories, that exits either when the directories are exhausted, or
when a termination flag is passed (by the project scheduler) to the

The problem I've observed is

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

Ich kehre zurück am 20.07.2018.

Sehr geerhte Damen und Herren!

Ich bin von 09.07.2018 bis 20.07. 2018auf Urlaub und habe nicht immer die
Möglichkeit meine Mails zu lesen!

Mit freundlichen Grüßen

Jörg Meidl

Hinweis: Dies ist eine automatische Antwort auf Ihre Nachricht "Re: Why
nil" gesendet am 09.07.2018 16:30:51.

Diese ist die einzige Benachrichtigung, die Sie empfangen werden, während
diese Person abwesend ist.

Unsubscribe: <>

Header files in Ruby repo?

Hoping this question has a simple answer, I'm familiar with where the
Header files can be found in a Distro's own packagment system,
typically the package names will have a "-dev" or "--devel" appended
to the end of the package name. If something similar exists for gem
files from the official Ruby repos and can't seem to find in
Documentation(My search skills seem to have failed me), I can't find

packetgen 2.6.0 released

packetgen 2.6.0 has been released.

* home: <>
* bugs: <>
* doc: <>

PacketGen provides simple ways to generate, send and capture network

Known protocols are: Ethernet, Dot11, Dot1x, ARP, IP, IPv6, GRE, ICMP,


### 2.6.0 / 2018-07-04

* Add support for mDNS protocol.
* Header::SNMP#initialize now supports 2 more options:
* one to s

nokogiri 1.8.4 Released

Nokogiri version 1.8.4 has been released!

This release fixes a memory leak related to creating namespaced nodes which
was introduced waaaaay back in v1.5.7 (March 2013). If you're building or
modifying XML documents by inserting nodes with namespaces, it's probably
worth upgrading.

Thanks to @paddor for finding this memory leak!

# 1.8.4 / 2018-07-03

## Bug fixes

* [MRI] Fix memory leak when creating nodes with namespaces. (Introduced in
v1.5.7) [#1771]

mwrap - LD_PRELOAD malloc wrapper + line stats for Ruby

mwrap is designed to answer the question:

Which lines of Ruby are hitting malloc the most?

mwrap wraps all malloc, calloc, and realloc calls to trace the Ruby
source location of such calls and bytes allocated at each callsite.
This functionality may be expanded in the future.

It does not track allocation lifetimes, or frees, however.

Capture calls to `eval`.

I would like to capture calls to eval.

I tried using trace points which does get pretty close:

@call_trace = do |trace_point|
if trace_point.method_id == :eval
# How to get args?

I also tried to override Kernel.eval but that didn't seem to work correctly
either. I might be doing something wrong.

Any ideas or suggestions would be greatly appreciated.

Kind regards,

Read individual characters off socket?

Hi! I'm trying to read a character-at-a-time off a network socket;
while (say) getch kinda-sorta does that, it only does it once the remote
end has submitted the entire line via <CR>.

packetgen 2.5.2 released

packetgen 2.5.2 has been released.

* home: <>
* bugs: <>
* doc: <>

PacketGen provides simple ways to generate, send and capture network

Known protocols are: Ethernet, Dot11, Dot1x, ARP, IP, IPv6, GRE, ICMP,
and HTTP.


### 2.5.2 / 2018-06-26

* Add support for NetBIOS session protocol.
* Fix a bug on MacOS: loopback device name was poorly guessed

How to distribute shoes app ?

Greetings my beloved rubyists,

After strolling through the gardens of Java, clojure into the dark caves of

I'm back home to Ruby. I recently got to know about this beautiful tiny GUI
framework called shoes.

How can we distribute a simple Shoes app ?

Is it :

1. Ask the end user to install shoes.
2. Ask him to run your Ruby script.

Thank you !

sportweb Gem Update - Instant sport.db Web Admin (Rails Engine) Command Line Tool / Server - Browse All World Cups etc.


for the world cup I've updated the sportweb command line tool [1] that
lets you browse your local sport.db / worldcup.db with a built-in
instant web admin server (and rails engine).

Browse all world cups (from Uruguay 1930 to Russia 2018) or build
your own sport league / tournament.

Cheers. Prost. Enjoy the beautiful game with ruby (and rails).

[1] <a href="" title=""></a>

Unsubscribe: <>

EventMachine, single-character input, and start_server?

Hi! EventMachine is really nifty. It even supports single-character
input, which is something I've realized I need... but I'm not sure it
supports it over a network connection. Or, rather, I'm thinking maybe
it doesn't.

1) Can I get character-at-a-time input via EventMachine for a
network-based connection?
2) Failing that, what other recommendations might be out there?

./bin/rake db:migrate db:seed db:test:prepare Fails

Referring to the link: [[ <>]]
I was setting up the development environment of an opensource project developed in Ruby  : openproject  in ubuntu 16, gnome-terminal.

nokogiri 1.8.3 released

Nokogiri version 1.8.3 has been released!

TL;DR: This is a feature and bugfix release. There's also a commit reverted
in the vendored upstream libxml2 that the Nokogiri maintainers feel
introduced unnecessary security risk involving sanitizing HTML attributes.
You're encouraged to read the release notes and the related documents if
you're curious or want to evaluate whether you should upgrade.

The release is being made from NYC, at the twelfth and final GORUCO.

Best Language For The Job

Here is a really old version of a browser game i wrote in PHP(1). Please
don't share the link as I'm very limited in resources. This is the type of
browser game I'm trying to create. It is an open source version of
Batllemail, a now defunct game written by Paul Gouge. Players would pick 6
attacks and 6 blocks and then the challenge would be sent to the opponent.
After the opponent does the same if he accepts the challenge, bother users
are treated to a Kung-Fu style cinematic played out based on what both
players choose(2)(3). I know you guys might be bias, but i still want your

Open port, then lower privs.

Hi, all. "For reasons," I need to set up a telnet-like service -- and,
yeah, it needs to be on port 23. In the Unix world, ports < 1024
require root privs to open, but I don't want my server running with root
privs for reasons that should be obvious. Using the base Eventmachine
example, I'm wondering if someone could show me how to do this? I see
that there's a "set_effective_user(username)" method on the object, but
I don't see how to use that on the object since instantiating it seems
to execute it, and it's too late to do it afterward...

Anyone interested in building a Ruby alternative to RoundCubeMail ?


I have been using RCM for many years and although it is the best current
option for my needs, there are still some changes / enhancements I would
make if I could - but it is written in PHP and there is no way I am
going to put any effort into learning that.

Design patterns used in ActiveRecord Library

Hi Folks,

Just came across the question regarding what are the different design
patterns used in ActiveRecord library,

As of I know ORM is one of the design pattern used,

Is there any other design pattern used in ActiveRecord library?


Is there some reason that presents the merge method in the
example block for update method ?

<a href="" title=""></a>

thank you,

Hash["string1, string2"]

Hello Ruby Friends!

I was reviewing Ruby docs and re-learned that a Hash can be created from
what appears to be a list of strings with the requirement that there is
even number.

I try it in irb:

irb(main):004:0> Hash["stringA1", "stringA2", "stringB1", "stringB2"]
=> {"stringA1"=>"stringA2", "stringB1"=>"stringB2"}

Yet when I try to automate it with a variable I see that the argument of
list appears to be unacceptable.

In irb:

irb(main):007:0> s = ["stringA1", "stringA2", "stringB1", "stringB2"]
=> ["stringA1", "stringA2", "stringB1", "stringB2"]
irb(main):008:0> Hash[s]
(irb):8: warni

HighLine 2.0.0

Hi all,

We've finally released HighLine 2.0.0.
Last year I wrote the bellow email asking people for testing the pre
release version of it. So I think everything we'll be ok!

HighLine is 13 years old now.
We've tried to put it back in shape!

footty - football.db command line tool / client for world cup (russia 2018)


for the upcoming football world cup in russia 2018 - the world’s
biggest show (3+ billion fans) - I’ve put together a little command
line tool / client in ruby called footty that lets you query the
online football.db HTTP JSON API services for upcoming or past

ruby beginner help

I am having a lot of trouble wrapping my head around this
I have an array of arrays of prime numbers.
I want to add a each prime number to this array.
I have

prime_ary = [[3, 5], [3, 7], [3, 11], [5, 11]]
add_ary = [57, 91, 109]

I would like to get an array of arrays like this

[[3,5, 57], [3, 7, 57], [3, 11, 57], [5, 11, 57], [3, 5, 91], [3, 7, 91], [3, 11, 91] ... ]
There should be 12 sub arrays in the array at the end. I have this function in an array class but it doesn't give me the result I would like.

Building world-cup.json - Open (free) public domain world cup in Russia 2018 football datasets in JSON with Ruby (and the sportdb machinery)


using the sportdb machinery (gems, command line tools and build
scripts in ruby) I've put together a [new free public domain dataset
for the (football) world cup in Russia 2018 [1].

anybody want to talk about the GitHub acquisition ?

Forgive me if this is off topic, but since Ruby and Heroku (and Rails and
...) use GH ... I'm really upset about the acquisition of GitHub by The
Company That Shall Not Be Named.

Clearly I have a bias. I have been a happy little coder, thinking about
Github with warm fuzzy thoughts about all the great innovative work going
on and my little miniscule contribution to that. Now the site is associated
with what I consider to be one of the worst companies of all time. Honestly
I feel blindsided and betrayed.

Your mileage may vary ?

Debugging an email problem with Discourse


I can't ask this question on the Discourse forum because I installed the
Bitnami stack into my Docker container and the Docker people won't
answer questions if you don't use their container - so I thought there
might be some Rubyists who have had some experience with Discourse or at
least might be interested enough to help me debug this problem (I am
assuming it is Ruby-related).

I have the container working fine here:

<a href="" title=""></a>

BUT . . emails aren't working .

Up for Architectural Review?

Well, okay, feel free to comment on my Ruby. There's room for improvement.

I have been playing at some code for a while and decided to make it
actually "work" today. That means prioritizing a very few processes
and pushing back on scope creep.

Method define new question

I am completely new to ruby though I have several years experience in programming. My question is why following code's class X can directly refer to state (for defining method block) without any include or require keyword? And how can I access to state method value (in class X) after those state blocks are initialized (so I can observe values gets defined or executed in that block)?


Unsubscribe: <>

rasn1 0.6.2 released

rasn1 0.6.2 has been released.

* home: <>
* bugs: <>
* doc: <>

RASN1 is a pure ruby ASN.1 library. RASN1 helps to create ASN.1 parsers
and encoders.


### 0.6.2 / 2018-05-28

* Add Types::UtcTime and Types::GeneralizedTime

Unsubscribe: <>

Hash documentation

Unsubscribe: <>

Augmenting gem search path

I installed ruby-2.4.4 from the default tarball on a RHEL5 system to
/tmp/ruby24. I want to install gems manually to /tmp/ruby24p (I want
all gems in a separate directory).

JRuby is released!

The JRuby community is pleased to announce the release of JRuby

Homepage: <a href="" title=""></a>
Download: <a href="" title=""></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 is
our first release for 2.5 support.

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

ruby-xz 1.0.0 released

Good evening everyone,

I am pleased to announce that I have released ruby-xz 1.0.0 today after
several years of stallment.

ruby-xz provides Ruby bindings for the liblzma[1] library, the C library
behind the compression programme xz(1). It can thus be used to create or
unpack XZ-compressed tarballs if used together with the minitar[2]


Hi there,

I'm looking for feedback on <a href="" title=""></a> and
<a href="" title=""></a>. Sorry I haven't committed to Ruby
before and am not sure of the best way to go about getting more feedback
other than emailing this listserv.

Please let me know if there's a better way to go about getting feedback on
these. Thanks!

Programming Blockchains Step-by-Step from Scratch (Zero) in Ruby. Starting with Crypto Hashes... - New Free (Online) Book @ Yuki & Moto Press


I've added a new free (online) book to the Yuki & Moto Press
Bookshelf [1]. Let's welcome:

Programming Blockchains Step-by-Step from Scratch (Zero) in Ruby.
Starting with Crypto Hashes...

Dealing with invalid encoding...

Hi, all. I've got a file with some things like this:

radio frames^M<83>?<9B>v64
(The "?" is a \x3f)

Needless to say, Ruby barfs all over that. There are also *other*
invalid strings in the file. (Thanks, Framemaker.)

Now, I know I can use #scrub to make the file palatable, but what I
*really* want to do is to take the "<83>?<9B>", and swap it with a
\u2022 (unicode bullet), and then use #scrub on the rest of the invalid
stuff. But I can't figure out how to do that; I admit I get out of my
depth when dealing with encodings.

Ruby 3x3 - Ruby 3 Will Be 3 Times Faster - What’s News? Updates on Method JIT, Guilds, ...


I've updated the Ruby 3x3 articles (and slides) collection [1] @ Planet Ruby.

What's News? Thanks to the RubyElixirConf Tawain new slide decks include:

o The State of / All About Guilds - A New Concurrency Model for Ruby
3 by Koichi Sasada, Cookpad

o Method JIT (Just-In-Time) Compiler for MRI (Matz's Ruby
Interpreter) - Optimizations in Ruby 2.6 Preview 1, 2 by Takashi
Kokubun, Treasure Data.

Anything missing? Additions welcome. Cheers.

flay 2.12.0 Released

flay version 2.12.0 has been released!

* home: <>
* code: <>
* rdoc: <>

Flay analyzes code for structural similarities. Differences in literal
values, variable, class, method names, whitespace, programming style,
braces vs do/end, etc are all ignored. Making this totally rad.


### 2.12.0 / 2018-04-29

* 1 minor enhancement:

* Switched node filtering to happen before processing to avoid subtrees getting processed.

(Re)building the Billion Dollar Ethereum World Computer from Scratch (Zero) in Ruby


a little weekend experiment - let's (re)build the billion dollar
ethereum world computer from scratch (zero) using a 25-year-old
contract language - ruby :-) - and ye good 40-year-old SQL databases.

See a first live converted gold mine / token contract in universum

Ruby Conferences & Camps in May 2018 - What's Upcoming?


at the calendar page @ Planet Ruby we collect all ruby conferences
and camps from around the world. What's upcoming in May 2018?

- Rubyhack - May/3+4 (2d) Thu+Fri @ Salt Lake City, Utah, United States
- Ruby Unconf Hamburg - May/5+6 (2d) Sat+Sun @ Hamburg, Germany
- Ruby Open Source Software (ROSS) Conf Amsterdam (FREE) - May/11+12
(2d) Fri+Sat @ Amsterdam, the Netherlands
- Balkan Ruby - May/25+26 (2d) Fri+Sat @ Sofia, Bulgaria
- RubyKaigi - May/31-Jun/2 (3d) Thu-Sat @ Sendai, Miyagi, Japan

See all conferences & camps in 2018 [1]. Anything missing?

Hardware requirements for Ruby on Rails application


To host RoR application, what do i need in memory/cpu/storage ?
Does a VPS with 2GB MEMORY/ 2cpu 3.0 GHz / 30 GB storage enough ?

In the way running nginx+unicorn+postgresql



Unsubscribe: <>

Qo 0.3.0 released

Qo 0.3.0 is now out, and comes with a shiny new way to do pattern matching:

<a href="" title=""></a>

name_longer_than_three = -> person { > 3 }
people_with_truncated_names = { |m|
m.when(name_longer_than_three) { |person|[0..2], person.age) }
# And standalone like a case:Qo.match(people.first) { |m|
m.when(age: 10..19) { |person| "#{} is a teen that's
#{person.age} years old" }
m.else { |person| "#{} is #{person.age} years old" }

A bit more Scala inspired, and defini

Exploring FP in Ruby

I've been writing a few more advanced articles on how base concepts of Ruby
can be utilized to emulate features of more functionally oriented

JRuby Released

The JRuby community is pleased to announce the release of JRuby

Homepage: <a href="" title=""></a>
Download: <a href="" title=""></a>

JRuby 9.1.x is our current major version of JRuby. It is expected to be
compatible with Ruby 2.3.x and stay in sync with C Ruby.

Xf 0.1.0 - Transform Functions

Back again with new toys after playing with Rambda in Javascript again, and
wanting to keep a few of the features for later.

<a href="" title=""></a>

Introducing Xf, or Transform Functions. The idea behind this one was to
emulate lenses from functional languages in Ruby in a pragmatic way with a
bit of a Ruby twist.

Deal with a lot of JSON and transforming it? Have no idea where the key is,
or even if it's in the same place? Xf is great with that, give it a shot!

Was tempted to add some of this to Qo, but the concerns were fairly


- baweaver

Learn Ruby and Rails


What do you advice for a Unix/Windows administrator who wish to create
awesome web applications using Rails framework ?
What skills do we need in Ruby language to be able to survive in Rails ?
Do we need to master CSS, HTML, Javascript ?
Do we need to master Git ?
Which database to choose ? PostgreySQL, MySQL or Sqlite? MongoDB ?

Thank you very much for your replies!



Unsubscribe: <>

machine learning with ruby

What's the primary toolkit/framework for machine learning with ruby?
Just like python's scikit-learn.

I searched and found this link,
<a href="" title=""></a>

It seems there are too many options to choose.
Thanks for any suggestion.

Unsubscribe: <>

Syndicate content