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...

rails constantly failing with http 406 error

I am a ruby and rails rookie just trying to give myself an intro to ruby
and rails on my windows 10 laptop.

Almost everything I try with rails ends up failing with a "http 406" error.
I did some research on http 406 error and what I found stated "data was
requested in a format not supported by the server".

I was just following the simple steps in a rails beginner tutorial to
create a basic "blog" application. I changed to the directory where I
wanted the application structure to be created and issued the command
"rails new blog".

Waxx 0.1.4

Waxx - Web application framework version 0.1.4 has just been released.

Waxx is a high-performance multi-threaded app server that is not an MVC
framework and does not use Rack. It is mostly functional with just
modules and methods. It is good for CRUD, restful, and RPC services
including micro-services and monolithic beasts. Normal requests
including session management and a DB query are returned in 1 -2 ms.

rails new command dies with a strange error

I created a simple "hello world" rails app according to a tutorial I found
online. everything went ok.

Today I want to create a simple rails blog app. So I installed sqlite3
database.

Ruby Conferences 'n' Camps in 2019 Update - What's Upcoming in July? Aug? Sept? What's News?

Hello,

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

"Learn to code"-type book for students?

Hey, all. I'll admit it: Ruby's my favorite language, at least in part
because concepts that had been difficult or overly abstract in other
languages were straightforward concepts in Ruby. And now, well, I'd
like to share the fun. But I had ~25-odd years of hacking and slashing
in various languages before I went down Ruby Road; what I'm looking for
is an introduction-to-programming type of thing (book, website,
whatever) that happens to use Ruby, *not* simply a book aimed at a
programmer who's looking to learn Ruby.

Ruby Quiz - Challenge #15 - Generate the Bitcoin (Base58) Address from the (Elliptic Curve) Public Key

Hello,

I've posted a new ruby quiz:

Challenge #15 - Generate the Bitcoin (Base58) Address from the
(Elliptic Curve) Public Key [1].

Start from scratch or, yes, use any library / gem you can find.

To qualify for solving the code challenge / puzzle you must pass
the test [2]:

``` ruby
require 'minitest/autorun'

class RubyQuizTest < MiniTest::Test

def test_addr
pubkey =
'0250863ad64a87ae8a2fe83c1af1a8403cb53f53e486d8511dad8a04887e5b2352'

pkh = pk_to_pkh( pubkey )
assert_equal 'f54a5851e9372b87810a8e60cdd2e7cfd80b6e31', pkh

prefix = '00'

configure couldn't enable native coroutine correctly if with parameter --target

I am trying to build ruby 2.6.3 downloaded from github.

Once I executed "configure --target x86_64-clr-linux-gnu", configure couldn't enable the native coroutine for amd64, because the target_os is recognized as "linux-gnu", not "linux".

In configure.ac, for enable native coroutine for amd64, target_os have to be "linux",

AS_CASE(["$target_cpu-$target_os"],
[x*64-darwin*], [
rb_cv_coroutine=amd64
],
[x*64-linux], [
AS_CASE(["$ac_cv_sizeof_voidp"],

Simple Sinatra app speed based failure?

I have a simple Sinatra based app:
<a href="https://github.com/makhidkarun/ftl_tools" title="https://github.com/makhidkarun/ftl_tools">https://github.com/makhidkarun/ftl_tools</a>

That calls some defaults if data is not provided:
<a href="https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/crewgen.rb#L60-L64" title="https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/crewgen.rb#L60-L64">https://github.com/makhidkarun/ftl_tools/blob/master/lib/ftl_tools/crewg...</a>

This morning I noticed that one set of basic tests would randomly (one,
both, neither) fail:
<a href="https://github.com/makhidkarun/ftl_tools/blob/master/spec/unit/crewgen_spec.rb" title="https://github.com/makhidkarun/ftl_tools/blob/master/spec/unit/crewgen_spec.rb">https://github.com/makhidkarun/ftl_tools/blob/master/spec/unit/crewgen_s...</a>

At first I thought my RSpec-fu was weak, but using curl to test gave
interesting results:
<a href="https://github.com/makhidkarun/ftl_tools/blob/master/logs/speed_errors.txt" title="https://github.com/makhidkarun/ftl_tools/blob/master/logs/speed_errors.txt">https://github.com/makhidkarun/ftl_tools/blob/master/logs/speed_errors.txt</a>

In the speed_errors.txt log, the end colu

Your views on Ruby microframeworks

Hi rubyist,

I was just search for some micro web frameworks for ruby . I found some
interesting ones like ramaze , nyny, scorched , Cuba , roda , camping .

Have you'll used any of these ? How has your experience been ?

Yours sincerely,

Surya.

A gem to which detects where a website is hosted

Would people be interested in this?

While developing a web service of mine, I thought it would be cool to detect where the user’s website is hosted and to use the matching icon instead of a generic "external url" one.

So I started developing it using both regexes and DNS queries.

Thinking Aloud: Refactoring from nested loops to enumerators and lambda's

So I'm just thinking out aloud here.

Being an Old School Programmer I tend to naturally to write ever more
deeply nested loops.

I hate myself when I do this because it’s hard to test especially if
some of the loops have nasty external side effects, it’s hard to
reuse, it’s hard to refactor.

So I’m trying two new patterns....

* Passing enumerators as parameters so I can pull out inner loops as
standalone functions without calling the entire function every time..

* Creating functions that return lambdas, so I can pass an inner loop
in as a parameter.

Walk with me this is going to be long….

Ruby for Infosec

Hi rubyist,

I know python is the preferred language for Infosec . But since python and
ruby are similar ,why is ruby not used often in Infosec?
Metasploit and Ronin are written in ruby .

What are your views on this ?

Your Regards,

Surya.

Call for entries for Ruby biz Grand prix 2019

Hello,

This is an announcement from the Ruby biz Grand prix executive committee.

[Exemplification of expected technical areas]
・Web application
・IoT (edge computing, sensor devices etc.), machine control
・Infrastructure
・Data analy

Senior Ruby Position - Berlin or Stockholm based

Hey,

I know this is a little unorthodox but I’m just wondering if anyone is looking for a new job as a senior Ruby developer in Berlin or Stockholm.

ruby rookie needs help with "ri" command

I am a ruby rookie with a question

I am running ruby 2.6.0p0 (2018-12-25 revision 66547) [x64-mingw32]
my laptop is windows 10

I was going through the PDF versionb of a ruby intro book and I have a
question about the "ri" command. The PDF file shows the following examples

ri Array
ri Array.sort
ri Hash#each
ri Math::sqrt

But in each case I receive an error message of the form "Nothing known
about xxx".

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

Ich kehre zurück am 23.06.2019.

Sehr geerhte Damen und Herren!

Ich bin von 19.06.2019 bis 23.06. 2019 auf 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
"sportdb-import gem - New football.db Match Importer for CSV Packages
(incl.

sportdb-import gem - New football.db Match Importer for CSV Packages (incl. England, Deutschland, and More)

Hello,

I've added a new (quick) importer for datafiles and packages
in the comma-separated values (csv) format to the sportdb library /
tool family [1].

For example let's import all datafiles for all seasons (from 1888-89 to today)
for England [2]:

require 'sportdb/import'

SportDb.connect( adapter: 'sqlite3',
database: './eng.db' )

## build database schema / tables
SportDb.create_all

## turn on logging to console
ActiveRecord::Base.logger = Logger.new(STDOUT)

pack = CsvMatchImporter.new( './england' )
pack.import_leagues

Happy da

Metaprogrammatically defining methods with required, optional, required keyword and optional keyword parameters?

I'm want to do meta programming in the sense of writing ruby to create
a new ruby method.

Module#define_method exists....

<a href="https://ruby-doc.com/core/Module.html#method-i-define_method" title="https://ruby-doc.com/core/Module.html#method-i-define_method">https://ruby-doc.com/core/Module.html#method-i-define_method</a>

However modern ruby now has required parameters, default parameters,
required keyword parameters and optional keyword parameters and an
optional a block parameter.

So Method.parameters seems to understand all these things....

How does the class name magic with Class.new?

This seems like deep magic... Any idea how it works?

a = Class.new
=> #<Class:0x0000558d34f68b48>
It seems as if whenever you create a Constant it checks to see to see
if it is an unnamed class and then names it....

That seems..... too magic.

RDL 2.2.0 release

I'm pleased to announce version 2.2.0 of RDL, a lightweight system for
adding types and contracts to Ruby.

NEW: This version of RDL includes support for "type-level
computations" (comp types), which help more precisely type arrays,
hashes, and Rails database queries. Comp types are described more
fully in our recent paper:

<a href="https://www.cs.tufts.edu/~jfoster/papers/pldi19.pdf" title="https://www.cs.tufts.edu/~jfoster/papers/pldi19.pdf">https://www.cs.tufts.edu/~jfoster/papers/pldi19.pdf</a>

Note: RDL is a research project from Tufts University and the University
of Maryland, College Park.

minitest-trump 3.0.0 Released

minitest-trump version 3.0.0 has been released!

* home: <https://github.com/seattlerb/minitest-trump>
* rdoc: <http://docs.seattlerb.org/minitest-trump>

For when the reality of your tests is just too much to bear, turn your
failures into fake news and errors into alt-facts, or golf.

Changes:

### 3.0.0 / 2019-06-06

* 1 minor enhancement:

* Skip -> Golfing (patientdev)

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

minitest-bisect 1.5.0 Released

minitest-bisect version 1.5.0 has been released!

* home: <https://github.com/seattlerb/minitest-bisect>
* rdoc: <http://docs.seattlerb.org/minitest-bisect>

Hunting down random test failures can be very very difficult,
sometimes impossible, but minitest-bisect makes it easy.

minitest-bisect helps you isolate and debug random test failures.

If your tests only fail randomly, you can reproduce the error
consistently by using `--seed <num>`, but what then? How do you figure
out which combination of tests out of hundreds are responsible for the
failure?

ruby2ruby 2.4.3 Released

ruby2ruby version 2.4.3 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:

### 2.4.3 / 2019-06-03

* 4 bug fixes:

* Added shadow block args. (jaynetics)
* Fixed generation for block args w/ trailing commas.
* Fixed nested masgn block args and arrays.

sexp_processor 4.12.1 Released

sexp_processor version 4.12.1 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...

oedipus_lex 2.5.1 Released

oedipus_lex version 2.5.1 has been released!

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

Oedipus Lex is a lexer generator in the same family as Rexical and
Rex. Oedipus Lex is my independent lexer fork of Rexical. Rexical was
in turn a fork of Rex. We've been unable to contact the author of rex
in order to take it over, fix it up, extend it, and relicense it to
MIT.

minitest-autotest 1.1.1 Released

minitest-autotest version 1.1.1 has been released!

* home: <https://github.com/seattlerb/minitest-autotest>
* rdoc: <http://docs.seattlerb.org/minitest-autotest>

autotest is a continous testing facility meant to be used during
development. As soon as you save a file, autotest will run the
corresponding dependent tests.

minitest-autotest is the latest incarnation of the venerable and wise
autotest. This time, it talks to minitest via minitest-server. As a
result, there is no output parsing.

minitest-autotest 1.1.0 Released

minitest-autotest version 1.1.0 has been released!

* home: <https://github.com/seattlerb/minitest-autotest>
* rdoc: <http://docs.seattlerb.org/minitest-autotest>

autotest is a continous testing facility meant to be used during
development. As soon as you save a file, autotest will run the
corresponding dependent tests.

minitest-autotest is the latest incarnation of the venerable and wise
autotest. This time, it talks to minitest via minitest-server. As a
result, there is no output parsing.

minitest-bisect 1.4.1 Released

minitest-bisect version 1.4.1 has been released!

* home: <https://github.com/seattlerb/minitest-bisect>
* rdoc: <http://docs.seattlerb.org/minitest-bisect>

Hunting down random test failures can be very very difficult,
sometimes impossible, but minitest-bisect makes it easy.

minitest-bisect helps you isolate and debug random test failures.

If your tests only fail randomly, you can reproduce the error
consistently by using `--seed <num>`, but what then? How do you figure
out which combination of tests out of hundreds are responsible for the
failure?

path_expander 1.0.4 Released

path_expander version 1.0.4 has been released!

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

PathExpander helps pre-process command-line arguments expanding
directories into their constituent files. It further helps by
providing additional mechanisms to make specifying subsets easier
with path subtraction and allowing for command-line arguments to be
saved in a file.

NOTE: this is NOT an options processor. It is a path processor
(basically everything else besides options).

autotest 5.0.0 Released

autotest version 5.0.0 has been released!

* home: <http://www.zenspider.com/projects/minitest-autotest.html>
* code: <https://github.com/seattlerb/autotest>
* bugs: <https://github.com/seattlerb/autotest/issues>

This is a stub gem to fix the confusion caused by autotest being part
of the ZenTest suite.

hoe 3.18.0 Released

hoe version 3.18.0 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.

How's your experience been with padrino?

Hi my beloved rubyist,

I'm currently learning padrino and enjoying it ...how has your experience
been with padrino?

Yours sincerely,

Surya.

HTTPX 0.4.0 released!

https 0.4.0 has been released.

* <a href="https://gitlab.com/honeyryderchuck/httpx" title="https://gitlab.com/honeyryderchuck/httpx">https://gitlab.com/honeyryderchuck/httpx</a>

httpx is a client library for making HTTP requests from Ruby. It has a
simple but highly configurable API to perform single and multiple requests
(supports HTTP/2 as well has 1.1 and 1.0).

I'm trying to build a Debian package for Ruby, but checkinstall is freezing during "make install"

Hello,

I have a question about compiling and packaging Ruby.

I'm compiling Ruby 2.5.5 with jemalloc in a Docker container, and I'm
trying to build a Debian package with checkinstall
<https://mailtrack.io/trace/link/2bd58d769ee1cfcbd8c05e558542f45495357d27?url=https%3A%2F%2Fwiki.debian.org%2FCheckInstall&userId=2274821&signature=3aafc1d2bc6c7b16>.
This tool runs "make install", records a list of changed files, and then
saves all of these files into a deb package. However, checkinstall is
getting stuck after this line: "generating x86_64-linux-fake.rb".

kittyverse library / gem - helper classes for cattributes, trait types, traits, genes, genomes and more for cryptokitties and copycats cryptocollectibles (on the blockchain)

Hello,

I've updated the free (open source) kittyverse library / gem that
includes helper classes
for cattributes, trait types, traits, genes, genomes and more for
cryptokitties and copycats cryptocollectibles (on the blockchain).
Example:

Use the Traits helper class to lookup trait types (e.g.

Rroonga 9.0.2 - fulltext search engine bindings

Hi,

Rroonga 9.0.2 has been released!

Web site: <a href="http://ranguba.org/#about-rroonga" title="http://ranguba.org/#about-rroonga">http://ranguba.org/#about-rroonga</a>

Rroonga is the Ruby bindings for Groonga that is a fast
flexible fulltext search engine and column store.

About Groonga: <a href="http://groonga.org/" title="http://groonga.org/">http://groonga.org/</a>

== About Rroonga

Rroonga is a library to use Groonga with Ruby-ish API. It is
easy to add fast fulltext search feature to your Ruby
application easily.

How to parse ruby files programmatically

Hi!

I need to parse ruby files (files, containing ruby code) and edit them. Specifically, I need:

1. Extract the list of classes defined in file
2. Without them being applied in current env (if some file for instance contains `String` class method patching, I don’t want it to be patched in current ruby session)

Is there a way to accomplish this?

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

unicorn 5.5.1 - 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.

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

Hello,

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

- Tue+Wed May/14+15(2d) - Ruby Conference Cracow @ Cracow, Poland
- Fri+Sat May/17+18(2d) - Balkan Ruby @ Sofia, Bulgaria
- Fri May/24 (1d) - Pivorak Conf @ Lviv, Ukraine
- Sat+Sun May/25+26(2d) - Ruby Unconf Hamburg @ Hamburg, Germany

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

PS: Do you have a favorite conference?

Contract Scripting for Everyone: (Hyperledger) FabCar Registration Sample - From Go Lang Chaincode to (Secure) Ruby Contract Scripts

Hello,

for the Vienna Hyperledger Meetup I've put together a talk titled:

Contract Scripting for Everyone: (Hyperledger) FabCar Registration Sample
From Go Lang Chaincode to (Secure) Ruby Contract Scripts

that shows that - surprise, surprise - (secure) ruby works great for
(contract) scripting. Code is code and Hyperledger Fabric is really
just a key-value store, that is, a simple hash table.

Problems with Time

Another one for you folks.

Awesome Types & Type Signatures / Annotations for Ruby

Hello,

I've started to put together a new awesome page collection about
all things types, type signatures / annotations and more for ruby -
incl. bool, bytes, buffer, enum, flag, record, data and more [1].

Is static the new dynamic? Any type gems / libraries missing?
Please, add or tell.

Happy coding with ruby with types. Cheers. Prost.

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

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

Nokogiri security update v1.10.3

Nokogiri v1.10.3 has been released.

This is a security release. It addresses a CVE in upstream libxslt rated as
"Priority: medium" by Canonical, and "NVD Severity: high" by Debian. More
details are available below.

If you're using your distro's system libraries, rather than Nokogiri's
vendored libraries, there's no security need to upgrade at this time,
though you may want to check with your distro whether they've patched this
(Canonical has patched Ubuntu packages).

Keyword arguments with symbol as default value

I need to use a Ruby symbol as the default value for an argument, but I
also want to use keyword arguments,  because they are so neat.

I found that wrapping the symbol in in parenthesis or using a constant
to refer to the symbol works.

Is there a better way to do this with Ruby 2.6+ (and still have a symbol
as the default value)?

def mymethod myarg:(:mydefaultsymbol)

    p myarg

end

# or

DEFAULT_MYVALUE = :mydefaultsymbol

def mymethod myarg:DEFAULT_MYVALUE

    p myarg

end

# where, in either case, mymethod # outputs :mydefaultsymbol

Unsubscribe: <mailto:ruby-talk-request@ruby

yahns 1.17.0 -_- sleepy app server for Ruby

Earth day release of a server designed for low energy use!

A Free Software, multi-threaded, non-blocking network
application server designed for low _idle_ power consumption.
It is primarily optimized for applications with occasional users
which see little or no traffic. yahns currently hosts Rack/HTTP
applications, but may eventually support other application
types.

olddoc 1.7.0 - old-fashioned RDoc generator

olddoc contains old-fashioned document generators for those who do not
wish to impose bloated, new-fangled web cruft on their readers.

olddoc contains dark216, a HTML generator without any images, frames,
or JavaScript. It is designed for users of text-based browsers
and/or low-bandwidth connections; yet respects user preference for
light color schemes in new CSS browsers while favoring darkness for
power savings on OLED and CRT displays.

Types & Type Signatures (for Ruby) Incl. Bool, Enums, Flags, Records, and More

Hello,

I've started a new org that collects types and type signatures
(typesigs) for ruby [1].

SMB plugin for packetgen v0.6.0

* home: <https://github.com/sdaubert/packetgen-plugin-smb>
* bugs: <https://github.com/sdaubert/packetgen-plugin-smb/issues>

packetgen-plugin-smb 0.6.0 is out.

packetgen-plugin-smb adds support for SMB protocol suite to PacketGen.

PacketGen provides simple ways to generate, send and capture network
packets.

Changes:

### 0.6.0 / 2018-10-18

* Add support for NTLM authentication protocol.
* Add SMB::String#to_human
* Add SMB::Filetime.now
* Fix:
** SMB2 header: buffer offset is set to 0 if buffer is empty

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://li

Ruby3 Will Have Types

Hello,

Today's biggest (most upvoted) story on Hacker News:

Ruby3 Will Have Types [1]

Any comments or thoughts here on ruby-talk about the breaking news?

Here are my two cents:

As a head start you can add the missing Bool type today :-), use the
safebool library / gem [2]

Sorbet is a great inspiring project.

Ruby 2.6.3 Released

Ruby 2.6.3 has been released.

This release adds support for New Japanese Era "令和" (Reiwa).
It updates the Unicode version to 12.1 beta
([#15195](<a href="https://bugs.ruby-lang.org/issues/15195" title="https://bugs.ruby-lang.org/issues/15195">https://bugs.ruby-lang.org/issues/15195</a>)), and updates date
library ([#15742](<a href="https://bugs.ruby-lang.org/issues/15742" title="https://bugs.ruby-lang.org/issues/15742">https://bugs.ruby-lang.org/issues/15742</a>)).

This release also includes some bug fixes.
See details [commit logs](<a href="https://github.com/ruby/ruby/compare/v2_6_2...v2_6_3" title="https://github.com/ruby/ruby/compare/v2_6_2...v2_6_3">https://github.com/ruby/ruby/compare/v2_6_2...v2_6_3</a>).

## Download

* <https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.3.tar.gz>

SIZE: 16784748 bytes
SHA1: 2347ed6ca5490a104ebd5684d2b9b5eefa6cd33c
SHA256: 577fd3795f22b8d91c1d4e6733637b03

Something is wrong with my threads

Would any of you smart folks like to tell me what stupid thing I am doing here?

At this point I have a test program that just uses plain MRI, no gems. If I keep running it, it will eventually fail (after a dozen runs at most). Code at the end of this post.

What I'm doing is creating a lot of identical threads. In each one I stop immediately, and then after the thread is re-entered, set a thread variable to say the thread is done then stop again. I run them all, and then check they are all done.

The problem is, sometimes they aren't all done. Which makes no sense to me.

Programming Bits, Bytes 'n' Blocks (in Ruby) Step-by-Step Book - Let's start with the types of strings, that is, bytes, (string) buffers, and (frozen) strings, ...

Hello,

I've started a new (free online) book(let) titled:

Programming Bits, Bytes 'n' Blocks (in Ruby) Step-by-Step Book / Guide [1]

Let's start with the three types of strings, that is, bytes,
(string) buffers, and (frozen) strings, ...

Trivia Question: What's the difference between?

1) String.new
2) String.new("")
3) ""

Happy bits & bytes slicing & dicing with ruby. Cheers.

Array#uniq vs Array#-

Hi.

<a href="https://repl.it/repls/FantasticIrritatingObjectcode" title="https://repl.it/repls/FantasticIrritatingObjectcode">https://repl.it/repls/FantasticIrritatingObjectcode</a>

Do you know why?

Thanks.

Programming Bitcoin Script Transaction (Crypto) Contracts Step-by-Step (in Ruby)

Hello,

I've started a new (free online) book(let) titled
Programming Bitcoin Script Transaction (Crypto) Contracts
Step-by-Step (in Ruby) [1].

Let's start with building your own bitcoin stack machine from zero /
scratch and let's run your own bitcoin ops (operations)...
Example:

## A simple stack machine
def op_add( stack )
left = stack.pop
right = stack.pop
stack.push( left + right )
end

def op_2( stack )
stack.push( 2 )
end

## Let's run!

stack = []
op_2( stack ) #=> stack = [2]
op_2( stack ) #=> stack = [2,2]
op_add( stack ) #=> st

What programming languages ​​and operating systems that will to be used after Jesus to return?

Hello!

And it was given to him that he gave spirit to the image of the beast, that
the image of the beast might also speak, and cause all them that worship
not the image of the beast to be slain.
And he causes all, small and great, rich and poor, free and bond, to be
given a sign in their right hand, or in their foreheads,
That no man may buy or sell, except he that hath the mark, or the name of
the beast, or the number of his name.
Here is wisdom.

Installing ruby with RVM cannot find <CoreFoundation/CFString.h>

Apologies for asking an uninteresting question, I am currently trying to
learn ruby for a senior capstone project by creating a RESTFUL api with it.
I have been trying to install ruby using rvm for a week now and I have had
little success. Both rvm and rbenv complain about not being able to find
CoreFoundation/CFString.h on OSX. I know this is more of a question related
specifically to my machine, but how can I fix my machine? I have posted on
Apple forums, stackoverflow 3-4 times, etc., not sure where else to go from
here.

I am on OSX 10.14.4 with XCode 2.2 installed.

pragmas gem / library - language syntax pragmas - turn on the future today or add your own ideas for easy (re)use for everyone - let's evolve the ruby language together by experimenting in the wild in a pragma(tic) way

Hello,

I've put together a new pragmas gem / library [1] for language syntax pragmas
that lets you turn on the future today or add your own ideas for easy
(re)use for everyone.

Let's evolve the ruby language together by experimenting in the wild
in a pragma(tic) way.

First language syntax pragmas include match patterns, enum and type
types, auto numbered arguments, and more.

Syndicate content