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

using nginx rewrite rules with sinatra

I've been having a hard time implementing the following pattern:

1. Have a sinatra app that thinks it's hosted under / - for example

GET /input -> display a form
POST /process -> process the form

and in form.html
<form action="process" ...>

2. Expose it at host:port (currently with puma, though I'm happy to change
that if some other server makes it easier), and put it behind nginx with a
prefix, e.g.

ZenTest 4.12.0 Released

ZenTest version 4.12.0 has been released!

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

ZenTest provides 4 different tools: zentest, unit_diff, autotest, and
multiruby.

zentest scans your target and unit-test code and writes your missing
code based on simple naming rules, enabling XP at a much quicker pace.
zentest only works with Ruby and Minitest or Test::Unit.

minitest-bisect 1.5.1 Released

minitest-bisect version 1.5.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?

minitest-sprint 1.2.1 Released

minitest-sprint version 1.2.1 has been released!

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

Runs (Get it?

path_expander 1.1.0 Released

path_expander version 1.1.0 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).

minitest 5.12.0 Released

minitest version 5.12.0 has been released!

* home: <https://github.com/seattlerb/minitest>
* bugs: <https://github.com/seattlerb/minitest/issues>
* rdoc: <http://docs.seattlerb.org/minitest>
* vim: <https://github.com/sunaku/vim-ruby-minitest>
* emacs: <https://github.com/arthurnn/minitest-emacs>

minitest provides a complete suite of testing facilities supporting
TDD, BDD, mocking, and benchmarking.

"I had a class with Jim Weirich on testing last week and we were
allowed to choose our testing frameworks.

Working with / Importing (Football) CSV Packages into an SQL Database with the sportdb Gem(s) in Ruby

Hello,

I've written up / published a new from zero / scratch getting
started guide for importing football.csv packages [1]
into an SQL database. The example uses all English football leagues, clubs
and matches (from 1888-89 to today) [2].

Number underscored gone wrong

Dear ruby fans...

Just a quick question: I always thought underscores in numbers were ignored, like 100_000, 10_00 or 666_6.

Buuut: did anyone of you tried to do following?

WTH :)

Really - try it :)

Would be great if someone could answer why this is not working as I imagined? :)

Have a nice afternoon!

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

path_expander 1.0.5 Released

path_expander version 1.0.5 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).

flog 4.6.3 Released

flog version 4.6.3 has been released!

* home: <http://ruby.sadi.st/>
* code: <https://github.com/seattlerb/flog>
* rdoc: <http://docs.seattlerb.org/flog>
* vim: <http://github.com/sentientmonkey/vim-flog>

Flog reports the most tortured code in an easy to read pain
report. The higher the score, the more pain the code is in.

Changes:

### 4.6.3 / 2019-09-14

* 1 minor enhancement:

* Removed --18 and --19 options to cmdline.

hoe 3.18.1 Released

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

BlueKitty 0.0.0

Hello!

I released a 3D game engine.

<a href="https://rubygems.org/gems/blue_kitty" title="https://rubygems.org/gems/blue_kitty">https://rubygems.org/gems/blue_kitty</a>

I've been learning Vulkan in the last months and using this knowledge to build this Ruby. It's incomplete now, but I intend to keep working on it until it becomes a reliable project for professional game development. I encourage anyone that wants to help or is just curious to follow it on Github: <a href="https://github.com/fredlinhares/blue_kitty" title="https://github.com/fredlinhares/blue_kitty">https://github.com/fredlinhares/blue_kitty</a>.

Ruby Conferences 'n' Camps in 2019 Update - What's Upcoming in Sept? Nov? Dec? What's News?

Hello,
I've updated the Ruby Conferences 'n' Camps in 2019 - What's
Upcoming?

String Corruption in Ruby 2.6.4

Hello,

When we upgraded one of our applications, we started seeing string corruption. That is, a strings' content would change seemingly randomly and contain nonsense characters, like null characters (\x00). However, the changes to the string are not deterministic.

Can’t report a bug, and a bug in Regexp + UTF-8 + //i

Hello,

ISSUE:
I can’t report a bug on the tracker as the login page displays:

"Internal error

An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine
administrator for assistance.

If you are the Redmine administrator, check your log files for details
about the error.

Back"

<a href="https://bugs.ruby-lang.org/login" title="https://bugs.ruby-lang.org/login">https://bugs.ruby-lang.org/login</a>

I clicked on "Login" on the Issue Report wiki page.

BUG:

2.6.3 :049 > 'SHOP' =~ /[xo]/i
=> 2
2.6.3 :050 > 'CAFÉ' =~ /[é]/i
=> 3
2.6.3 :051 > 'CAFÉ' =~ /[xé]/i
=> nil
2.6.3 :052 > 'CAFÉ' =~ /[xÉ]/i
=> 3

Expected

sportdb Gem Guide Updated - Working w/ Football CSV Files - English Premier League 2019/20 - Let's Build the Standings Table

Hello,

I've updated the hands-on getting started guide for the sportdb
text library / gem.

Let's build the standings table for the English Premier League (EPL)
for the 2019/20 season from all 40 matches (as of Sept/2) in the
comma-separated values (.csv) format.

In a nutshell:

```
require 'sportdb/text'

matches = CsvMatchReader.read( 'england/2010s/2019-20/eng.1.csv' )

standings = SportDb::Struct::Standings.new
standings.update( matches )

standings.to_a.each do |l|
print '%2d.

Good use of Adapter pattern?

I'm building my OO skills (about 30 years late) and am learning a little
bit about patterns. While they may not be the be all and end all, my
current use case might be a good fit for the Adapter. Looking for a
little wisdom before I jump in.

I have a module, "data_mine", currently with two methods.

Rroonga 9.0.7

May Sho Hashimoto's soul, R.I.P.

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

unsubscribe

unsubscribe

来自WangmiaoChen的邮件

pls delete me from this mail list, tks

R.I.P.

A Ruby committer Sho Hashimoto (sho-h) has passed away on Aug 28 from
a sudden illness.

He contributed much to Ruby and the community.

May his soul rest in peace.

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

Ruby 2.6.4, 2.5.6 and 2.4.7 Released

Hi, all

We've just released Ruby 2.6.4, 2.5.6 and 2.4.7.
How to download and details:

* [Ruby 2.6.4 Released](<a href="https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-6-4-released/" title="https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-6-4-released/">https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-6-4-released/</a>)
* [Ruby 2.5.6 Released](<a href="https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-5-6-released/" title="https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-5-6-released/">https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-5-6-released/</a>)
* [Ruby 2.4.7 Released](<a href="https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-4-7-released/" title="https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-4-7-released/">https://www.ruby-lang.org/en/news/2019/08/28/ruby-2-4-7-released/</a>)

These releases include a security fix.
You can check detail:

* [Multiple jQuery vulnerabilities in RDoc](<a href="https://www.ruby-lang.org/en/news/2019/08/28/multiple-jquery-vulnerabilities-in-rdoc/" title="https://www.ruby-lang.org/en/news/2019/08/28/multiple-jquery-vulnerabilities-in-rdoc/">https://www.ruby-lang.org/en/news/2019/08/28/multiple-jquery-vulnerabili...</a>)
への対応

We strongly recommend to upgrade your

Integer#chr

Hi,

i have a problem with Integer#chr, where the encoding is UTF-8. If I call

0xC384.chr(Encoding::UTF_8)

in irb, I expect the German umlaut Ä, but I get 쎄, where I even can't
say what language it is ;-)

Is it a bug, or do I something wrong?

Cheers, detlef

ruby version ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux-gnu]
irb version 0.9.6(09/06/30)

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

ruby rookie needs help with mtime method of File

I was looking at an example of the "mtime" method for a file and when I ran
the example I received the following traceback

C:\barry\ruby>ruby dir3-glob.rb
backtick1.rb
Traceback (most recent call last):
2: from dir3-glob.rb:3:in `<main>'
1: from dir3-glob.rb:3:in `glob'
dir3-glob.rb:6:in `block in <main>': undefined method `mtime' for
"backtick1.rb":String (NoMethodError)

The source of my script is as follows
1 #!C:\Ruby\bin\ruby.exe -w
2
3 Dir.glob("*.rb") {|file|
4 # do something with the file here
5 puts file
6 mtime = file.mtime
7 ne

footballdata gem - download & import 22+ top football leagues from Joseph Buchdahl's Football Data

Hello,

I've put together a new sportdb-source-footballdata gem / library [1]
that lets you download & import 22+ top football leagues
from 25 seasons back to 1993/94 from Joseph Buchdahl's Football Data
website (updated twice a week).

Leagues include the English Premier League, the German Bundesliga,
the Spanish Primera Division (La Liga), the Brazilian Série A, the
Japanese J1 League, and many more.

Downloading all 570+ datafiles (in comma-separated values format)
is as easy as:

```
require 'sportdb/source/footballdata'

Footballdata.download
```

And importing the datafi

footballdb-clubs Gem / Library - Match 1500+ Football Club Names from 100+ Leagues from Around the World

Hello,

I've put together a new footballdb-clubs gem / library [1]
that bundles-up an all-in-one football.db /clubs datafile [2]
and lets you match 1500+ football club names from around the world
"out-of-the-gem / box " with zero-configuration.

It's as easy as:

``` ruby
require 'footballdb/clubs'

pp Club.all
```

resulting in:

```
[#<Club @name="Al Ahly", @city="Cairo", @country="Egypt", ...>,
#<Club @name="Al Mokawloon Al Arab", @city="Cairo", @country="Egypt", ...>,
#<Club @name="El Dakhleya", @city="Cairo", @country="Egypt", ...>,
#<Club @name="El Entag El

dynamic loading and unloading of module

Hi,

I want to load and remove dynamically Module in an application. Removing
is possible, but

I am not able to reload it. Is there any way to do it?

Is it even recommendable to do something like this?

Ulli

module Mod
  def foo
    puts "fooing"
  end
end

module Modd
  def foo
    puts "fooing2"
  end
end

class C
  include Mod

  def self.remove_module(m)
    m.instance_methods.each{|m| undef_method(m)}
  end

  def self.addModul m
        include m
    end
end

c = C.new
c.foo
C.remove_module(Mod)

C.addModul(Modd)
c.foo

Alphabets Benchmarks - How many ways to unaccent a text string? Turn AÄÁaäá into AAAaaa. And the winner is...

Hello,

let's try out half a dozen ways to unaccent a text string? [1]

The challenge - What's the fastest way to turn `AÄÁaäá EÉeé IÍiíï
NÑnñ OÖÓoöó Ssß UÜÚuüú`
into `AAAaaa EEee IIiii NNnn OOOooo Ssss UUUuuu`?

Let's benchmark and the winner (so far) is... Spoiler: `gsub` .

NON_ALPHA_CHAR_REGEX = /[^A-Za-z0-9 ]/ # use/try regex constant
for speed-up
def unaccent_gsub( text, mapping )
text.gsub( NON_ALPHA_CHAR_REGEX ) do |ch|
mapping[ch] || ch
end
end

Can you find a faster way? Show us.

Happy data (and text) wrangling with ruby. Cheers.

JRuby 9.2.8.0 Released!

The JRuby community is pleased to announce the release of JRuby 9.2.8.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 compatible with Ruby 2.5.x and stays in sync with C Ruby.
This version offers significant improvements to refinements. It also has a
big performance gain for Rational#/. As always there is a mix of
miscellaneous fixes so be sure to read the issue list below. All users are
encouraged to upgrade.

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

fifa gem - the world's football countries and codes (incl. non-member countries and irregular codes)

Hello,

I've put together a new fifa gem / library [1]
that includes all the world's football countries and codes
(incl.

ruby for machine learning

Hi,

I mostly do programming with ruby/perl/c, but machine learning seems to
use python primarily.
what's the suggested framework for ruby user to use machine learning stuff?

thanks.

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

Nokogiri 1.10.4 has been released.

This is a security release.

Getting basic data from Ruby itself?

I'm building my study tools for the Ruby certification exam. Is there a
way to query Ruby itself for:

Key words (def, begin, end, etc)
What those key words do
The list of built-in modules and classes
The standard library modules

Some things seem to have ri documentation, some I just haven't figured
out how to get yet. I do not want a web page with the data, but a web
tutorial on how to get it would be great.

Thanks!

Leam

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

ruby/rails rookie needs help to build a simple database app

I am attempting to give myself an intro to ruby and rails. I am a long time
software developer (unix, perl, c, database, web, etc...)

So far every tutorial I have tried has ended in disaster. In one case when
I go to the url listed in the tutorial I get an error and a traceback which
complains about a missing method.

Final iteration lost?

I'm parsing a data file with each_line, each section starts with a line
that ends in ")". Each section has 2-3 subsections, delimited by blank
lines. The original test for a new section was:

if line.end_with?(')')

However, that means the last section is never dealt with, since the
"each_line" ends at EOF.

Artichoke Ruby - a ruby made with rust - Try the playground in your browser running on a WebAssembly build

Hello,

I've added Artichoke Ruby [1a] to the Awesome Rubies (collection) page [2].

What's Artichoke Ruby? It's a new upcoming ruby in rust by Ryan
Lopopolo et al.

You can try Artichoke in your browser [1b]. Yes, the Artichoke
playground runs a WebAssembly build of Artichoke.

Congrats to Ryan Lopopolo for the inspiring code.

What's your take? Cheers.

AUTO: Joerg Meidl is out of the office

Ich kehre zurück am 19.08.2019.

Sehr geerhte Damen und Herren!

Ich bin von 05.08.2019 bis 19.08. 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 "[ANN] 2019
Call for Grant Proposals" gesendet am 05.08.2019 09:06:03.

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

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

2019 Call for Grant Proposals

The Ruby Association is looking to give grants for development
projects related to Ruby implementations, libraries and frameworks, including
projects that improve existing software.

If you have a good idea, please submit a proposal.

Football Data Wrangling w/ Ruby - Match 1500+ Football Club Names from Around the World using the sportdb Library and Open football.db Datasets

Hello,

To prepare for the 2019/2020 football season kick-off I've put together
a football data wrangling w/ sample that lets you match 1500+
football club names
from 100+ leagues from around the world using the sportdb gem / library
and open football.db (public domain) datasets.
Example:

``` ruby
require 'sportdb/config'

## note: requires a local copy of the football.db clubs datasets
## see <a href="https://github.com/openfootball/clubs" title="https://github.com/openfootball/clubs">https://github.com/openfootball/clubs</a>
SportDb::Import.config.clubs_dir = './clubs'

m = SportDb::Import.config.clubs.match( 'Arsenal' )
m.size # 3 club matches found
#=> 3
m[0].na

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

Syndicate content