Top scheme Geeks


Check out snippets of the blog postings. Click on the link to view the full post at the original site as the author intended.

nagachika

[ruby][changes]ruby-trunk-changes r54554 - r54564

nagachika  on  4/12/2016

今日は開発者会議効果か、多値の代入を条件部に書けるようにする文法の変更や、Integer#floor, #ceil, Float#floor, #ceil が省略可能な引数で操作する桁を指定できるようにする拡張、File.empty? の追加などの新機能が多くありました。 nobu: r54554 2016-04-13 11:41:24 +

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54554 - r54564

nagachika  on  4/12/2016

今日は開発者会議効果か、多値の代入を条件部に書けるようにする文法の変更や、Integer#floor, #ceil, Float#floor, #ceil が省略可能な引数で操作する桁を指定できるようにする拡張、File.empty? の追加などの新機能が多くありました。 nobu: r54554 2016-04-13 11:41:24 +

ruby changes 
robbyrussell

2016 Rails hosting survey is open

robbyrussell  on  4/12/2016

If you’ve not taken the 2016 Rails hosting survey, please do so at http://rails-hosting.com/

[...]

robbyrussell

20 Free Design Resources for Developers

robbyrussell  on  4/12/2016

20 Free Design Resources for Developers

This list is for both the developer who could use some help navigating the world of design and the designer who is always on the hunt for a new weapon to add to their arsenal.

Continue Reading

[...]

nagachika

[ruby][changes]ruby-trunk-changes r54546 - r54553

nagachika  on  4/11/2016

今日は拡張ライブラリ date の Time#to_time がタイムゾーンをコピーするようにする変更がありました。 nobu: r54546 2016-04-12 09:30:55 +0900 VM の命令列の末尾呼び出し最適化についてのテストで失敗時のメッセージに対象のメソッドの VM 命令列を disasm したものを表

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54546 - r54553

nagachika  on  4/11/2016

今日は拡張ライブラリ date の Time#to_time がタイムゾーンをコピーするようにする変更がありました。 nobu: r54546 2016-04-12 09:30:55 +0900 VM の命令列の末尾呼び出し最適化についてのテストで失敗時のメッセージに対象のメソッドの VM 命令列を disasm したものを表

ruby changes 
robbyrussell

Behind the Ruby Gems Curtain

robbyrussell  on  4/11/2016

Behind the Ruby Gems Curtain

Debugging Gems in a Rails is fun and easy, when Bundler started giving me nonsensical errors I cracked it open to take peek.

Continue Reading

nagachika

[ruby][changes]ruby-trunk-changes r54530 - r54545

nagachika  on  4/10/2016

今日は末尾呼び出し最適化の不具合修正の他、主にテストの警告除去などがありました。 nobu: r54530 2016-04-11 06:54:41 +0900 file.c の apply2files() という関数で処理対象の引数を Ruby の Array オブジェクトで渡すのをやめて argc/argv で渡すように変更し、呼び元で

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54530 - r54545

nagachika  on  4/10/2016

今日は末尾呼び出し最適化の不具合修正の他、主にテストの警告除去などがありました。 nobu: r54530 2016-04-11 06:54:41 +0900 file.c の apply2files() という関数で処理対象の引数を Ruby の Array オブジェクトで渡すのをやめて argc/argv で渡すように変更し、呼び元で

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54526 - r54529

nagachika  on  4/9/2016

今日は win32/registry の不具合修正などがありました。 nobu: r54526 2016-04-10 16:30:42 +0900 win32/file.c の rb_file_expand_path_internal() でメモリ解放時に xfree() を使っていましたが、対応するバッファの確保は malloc() で行なわれていたので free() を使うよ

ruby changes 
nagachika

[ruby][changes]ruby-trunk-changes r54526 - r54529

nagachika  on  4/9/2016

今日は win32/registry の不具合修正などがありました。 nobu: r54526 2016-04-10 16:30:42 +0900 win32/file.c の rb_file_expand_path_internal() でメモリ解放時に xfree() を使っていましたが、対応するバッファの確保は malloc() で行なわれていたので free() を使うよ

ruby changes 
robbyrussell

Code Watch: Flexbox

robbyrussell  on  4/8/2016

Code Watch: Flexbox

Flexbox is the answer to so many frontend developers nightly prayers. It helps with column-based layouts and has a few more tricks up its sleeve. You won't believe the part about content-ordering!

Continue Reading

robbyrussell

Junior Developer Tips – Which Programming Language Should I Start With?

robbyrussell  on  4/6/2016

Junior Developer Tips – Which Programming Language Should I Start With?

Rahul Gulati asks what programming language should I start with?

Continue Reading

[...]

robbyrussell

Why is Ruby On Rails a Good Fit in 2016?

robbyrussell  on  4/5/2016

Why is Ruby On Rails a Good Fit in 2016?

An overview of why we use Ruby on Rails and why it is a good framework for the people we work with.

Continue Reading

robbyrussell

5 Web Products We Never Launched

robbyrussell  on  4/4/2016

5 Web Products We Never Launched

Over the years, we’ve had a number of product ideas. Here are five applications that never survived.

Continue Reading

robbyrussell

Should we upgrade to Rails 5?

robbyrussell  on  4/4/2016

Should we upgrade to Rails 5?

Version 5 of Ruby on Rails is coming soon! Using this new version is a no-brainer for a new project, but should your team take the time to upgrade your existing Ruby on Rails app?

Continue Reading

robbyrussell

Will it make an impact?

robbyrussell  on  4/1/2016

Art, without distribution and discovery, moves nobody. Did it ever exist? Science, without clear explanation and advocacy, won’t be understood by the masses. Will it make an impact?

Jocelyn K. Glei from Make Your Mark: The Creative's Guide to Building a Business with Impact

robbyrussell

Video Testimonial: Oregonian / OregonLive

robbyrussell  on  3/31/2016

Steve Suo and Grant Butler from the Oregonian/OregonLive share their experience of working with our team and the results of our redesigned Recipe Box; from a more inspiring and searchable application, to an increase in traffic, to simultaneously freeing up their staff time to focus on the content they serve to customers.

[...]

robbyrussell

Rails Hosting Survey 2016

robbyrussell  on  3/29/2016

Rails Hosting Survey 2016

The Rails Hosting Survey is back for the fourth time! This is your opportunity to share your thoughts with the community and gauge current trends in Rails hosting.

Continue Reading

robbyrussell

Learning D3

robbyrussell  on  3/29/2016

Learning D3

I recently had the opportunity to use D3.js for the first time. The learning curve was steep, I was able to produce a series of dynamic charts that I was quite proud of. Here is a summary and brief walkthrough of my learning experience.

Continue Reading

zenspider

Fixing Keynote Presentation Display

zenspider  on  3/28/2016

I’ve been having periodic problems with Keynote when I finally get on stage and plug in. Detecting the display is never an issue, and I can see my normal desktop image when I plug in. For some unknown reason when I start my presentation I will periodically get presenter notes but no actual presentation on the projector. It stays black.

I figured out that I can fix this on the fly by nuking Keynote’s preferences in the container (ugh) via:

% rm ~/Library/Containers/com.apple.iWork.Keynote/Data/Library/Preferences/com.apple.iWork.Keynote.plist

This absolutely works, but I also lose a lot of tweaks like shortcut customizations that help me do my work. It is the nuclear option that I’d rather not take.

After doing some

[...]

zenspider

hoe version 3.15.0 has been released!

zenspider  on  3/25/2016

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. Hoe ships with plug-ins for all your usual project tasks including rdoc generation, testing, packaging, deployment, and announcement..

See class rdoc for help. Hint: ri Hoe or any of the plugins listed below.

For extra goodness, see: http://docs.seattlerb.org/hoe/Hoe.pdf

Changes:

3.15.0 / 2016-03-25

  • 1 minor enhancement:

    • Added ruby version declarations for hoe-spec. ruby20!
  • 2 bug fixes:

    • Fixed running rdoc if it was satisfied outside of GEM_HOME.
    • Relaxed requirement on rake to include new rake 11.x. (hsbt)
[...]

robbyrussell

Computed Macros in Ember

robbyrussell  on  3/24/2016

Computed Macros in Ember

Let's discuss a few ways that we've used Computed properties in Ember.js.

Continue Reading

robbyrussell

5-day sprints are gaining traction

robbyrussell  on  3/16/2016

Business-as-usual decision-making is busted: we strive for consensus; we don’t make tough calls; we aren’t transparent about how choices are made. The sprint corrects these problems.

John Zeratsky from Harvard Business Review: Sprints Are the Secret to Getting More Done

[...]

Ry4an

Raspberry Pi UPS

Ry4an  on  3/13/2016

I'm starting to do more on a raspberry pi I've got in the house, and I wanted it to survive short power outages. I looked at buying an off the shelf Uninteruptable Power Supply (UPS), but it just struck me as silly that I'd be using my house's 120V AC to power to fill a 12V DC battery to be run through an inverter into 120V AC again to be run through a transformer into DC yet again. When the house is out of power that seemed like a lot of waste.

A little searching turned up the PicoUPS-100 UPS controller. It seems like it's mostly used in car applications, but it has two DC inputs and one DC output and handles the charging and fast switching. The non-battery input needs to be greater than the desired 12 volts, so I ebayed a 15v power

[...]

robbyrussell

Block radios and checkboxes with simple_form

robbyrussell  on  3/8/2016

Block radios and checkboxes with simple_form

There’s a common issue I've been having with the default way that simple_form renders the markup for checkboxes and radio buttons.

It’s been irking me for some time, because all that needs to happen is have an element that wraps both label and input together so we can style them as a block.

Continue Reading

[...]

robbyrussell

Simplicity vs. Maintainability: "One Model, One Endpoint" with Ember Data

robbyrussell  on  3/3/2016

Early in our Ember development we came to a crossroad that had significant impact on the Model structure in our application. In this post I’ll summarize one of many issues we ran into during those first several months, and solicit feedback in search of a "best practice" for the Adapter/Serializer structure in the following scenario.

Continue Reading

robbyrussell

5 Steps in a Good Design Process that can Improve Your Health Care Application

robbyrussell  on  3/2/2016

5 Steps in a Good Design Process that can Improve Your Health Care Application

Although there are regulations and complicated processes to contend with, is designing useful health care apps so different from designing other types of applications? Other industries, services, and companies are increasingly embracing technology and improving user experiences every day. And yet the management of our health and wellbeing seems to be quite far behind.

Is it such a unique field that we can’t apply any of our design expertise? I don’t believe so, and here’s why...

Continue Reading

[...]

robbyrussell

Do You Have What It Takes To Be a Great Client?

robbyrussell  on  3/2/2016

Do You Have What It Takes To Be a Great Client?

Reflecting on our history of working with a wide variety of clients, I share some thoughts on what you'll need to be successful as a client.

Continue Reading

[...]

robbyrussell

4 Reasons We Need to Focus on Redesigning our Health Care Experience

robbyrussell  on  3/1/2016

4 Reasons We Need to Focus on Redesigning our Health Care Experience

Redesigning for digital health care will be a hurdle that we need to overcome. Here are just a few main points to show what’s at stake if we ignore or wait for someone else to figure it out.

Continue Reading

[...]

robbyrussell

Our Most Delightful Core Value

robbyrussell  on  3/1/2016

Our Most Delightful Core Value

When looking at our 'core values' you will see words like dependable, versatile and collaborative, words you might expect to see on an organization's value list. Let’s call these ‘The Usual Suspects’. Then, there is one word, in this list, that stands out a little. This particular word is delightful.

Continue Reading

[...]

robbyrussell

Slick carousel is awesome and you should use it

robbyrussell  on  2/29/2016

I’ve used a lot of different jQuery plugins without giving them much of a second thought after implementation. With slick carousel though, each time I come back and use it I’m a little more impressed each time. All the features I need are built right in, are intuitive, and work consistently.

Continue Reading

robbyrussell

6 Questions to Ask a Ruby on Rails Company

robbyrussell  on  2/25/2016

6 Questions to Ask a Ruby on Rails Company

Some important questions to keep in mind when you’re interviewing potential development partners.

Continue Reading

robbyrussell

Blair Enns on the rise of the New Peer Groups

robbyrussell  on  2/25/2016

What many veteran network members might find surprising is the event participants communicate with each other far more than do the members of the traditional networks who’ve known each other for years. And they share – boy do they share! They don’t feel the need to be locked into a long-term network arrangement to solicit and offer feedback. They help strangers and expect to be helped by strangers.

Blair Enns from The Changing Face of Agency Networks

As a member of the Owner Summit / Owner Camp network, I thought this was a fascinating read about the history of industry peer groups. At the moment, it's become one of my best tools in my toolbox.

[...]

robbyrussell

Carlos on not knowing

robbyrussell  on  2/25/2016

Not knowing something is the basis of creativity, imagination, and innovation. That’s where scientists come from. 'I don’t know' is their most important question.

Carlos Rodriguez from #JuniorHints: How Planet Argon Hires

zenspider

ruby_parser version 3.8.1 has been released!

zenspider  on  2/19/2016

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same as ParseTree’s output: s-expressions using ruby’s arrays and base types.

As an example:

def conditional1 arg1
  return 1 if arg1 == 0
  return 0
end

becomes:

s(:defn, :conditional1, s(:args, :arg1),
  s(:if,
    s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
    s(:return, s(:lit, 1)),
    nil),
  s(:return, s(:lit, 0)))

Tested against 801,039 files from the latest of all rubygems (as of 2013-05):

  • 1.8 parser is at 99.9739% accuracy, 3.651 sigma
  • 1.9 parser is at 99.9940% accuracy, 4.013 sigma
  • 2.0 parser is at 99.9939% accuracy, 4.008 sigma

Changes:

3.8.1 / 2016-02-19

[...]

zenspider

ruby_parser version 3.8.0 has been released!

zenspider  on  2/18/2016

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same as ParseTree’s output: s-expressions using ruby’s arrays and base types.

As an example:

def conditional1 arg1
  return 1 if arg1 == 0
  return 0
end

becomes:

s(:defn, :conditional1, s(:args, :arg1),
  s(:if,
    s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
    s(:return, s(:lit, 1)),
    nil),
  s(:return, s(:lit, 0)))

Tested against 801,039 files from the latest of all rubygems (as of 2013-05):

  • 1.8 parser is at 99.9739% accuracy, 3.651 sigma
  • 1.9 parser is at 99.9940% accuracy, 4.013 sigma
  • 2.0 parser is at 99.9939% accuracy, 4.008 sigma

Changes:

3.8.0 / 2016-02-18

[...]

zenspider

sexp_processor version 4.7.0 has been released!

zenspider  on  2/18/2016

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.7.0 / 2016-02-18

[...]

zenspider

ruby2ruby version 2.3.0 has been released!

zenspider  on  2/18/2016

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.3.0 / 2016-02-18

[...]

zenspider

minitest-bisect version 1.3.1 has been released!

zenspider  on  2/18/2016

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? You know which test is failing, but what others are causing it to fail or were helping it succeed in a different order? That’s what minitest-bisect does best.

Changes:

1.3.1 / 2016-02-18

  • 2 bug fixes:

    • Added graceful handling of 100% failures. (aaronbbrown)
    • FINALLY fixed a partitioning bug I haven’t been
[...]

robbyrussell

Tom on Automatic Differentiation

robbyrussell  on  2/11/2016

Tom Stuart posted up an excellent article on Automatic Differentiation in Ruby with links to his talk slides and video.

[...]

Ruby Programming ruby 
baijum

New direction for my blog

baijum  on  1/29/2016

It’s very long time that I wrote anything in my blog. For last many years, my blog posts were mostly technical. Sometimes I have written personal things in my blog. Now onwards I am thinking to write both personal as well as technical things in my blog.

On February 14, 2013 I wrote this in my old blog: “I started writing blog in October 2004. Most of my blog entries were technical, very few times I wrote personal things. This blog post is written just to tell those who read my blog that I believe in Jesus Christ. I accepted Jesus Christ as my Lord and Savior in 1995. However, due to resistance from my family, I couldn’t continue fellowship with other believers and so I started backsliding. In August 2011, God helped me to find a

[...]

zenspider

ruby_parser version 3.7.3 has been released!

zenspider  on  1/21/2016

ruby_parser (RP) is a ruby parser written in pure ruby (utilizing racc–which does by default use a C extension). RP’s output is the same as ParseTree’s output: s-expressions using ruby’s arrays and base types.

As an example:

def conditional1 arg1
  return 1 if arg1 == 0
  return 0
end

becomes:

s(:defn, :conditional1, s(:args, :arg1),
  s(:if,
    s(:call, s(:lvar, :arg1), :==, s(:lit, 0)),
    s(:return, s(:lit, 1)),
    nil),
  s(:return, s(:lit, 0)))

Tested against 801,039 files from the latest of all rubygems (as of 2013-05):

  • 1.8 parser is at 99.9739% accuracy, 3.651 sigma
  • 1.9 parser is at 99.9940% accuracy, 4.013 sigma
  • 2.0 parser is at 99.9939% accuracy, 4.008 sigma

Changes:

3.7.3 / 2016-01-21

[...]

zenspider

rubygems-cleanroom version 1.0.3 has been released!

zenspider  on  1/21/2016

Ever want to test something out in a clean rubygems repo? Want your gem list to actually be empty? Me too. Now you can.

Changes:

1.0.3 / 2016-01-21

[...]

zenspider

oedipus_lex version 2.4.1 has been released!

zenspider  on  1/21/2016

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. So, Oedipus was written clean-room in order to bypass licensing constraints (and because bootstrapping is fun).

Oedipus brings a lot of extras to the table and at this point is only historically related to rexical. The syntax has changed enough that any rexical lexer will have to be tweaked to work inside of oedipus. At the very least, you need to add slashes to all your regexps.

Oedipus, like rexical, is based primarily on generating code much like you

[...]

zenspider

minitest version 5.8.4 has been released!

zenspider  on  1/21/2016

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. Kirk Haines and I were
 paired up and we cracked open the code for a few test
 frameworks...

 I MUST say that minitest is *very* readable / understandable
 compared to the 'other two' options we looked at. Nicely done and
 thank you for helping us keep our mental sanity."

-- Wayne E. Seguin

minitest/unit is a small and incredibly fast unit testing framework. It provides a rich set of assertions to make your tests clean and readable.

minitest/spec is a functionally complete spec engine. It hooks onto minitest/unit and

[...]

zenspider

graph version 2.8.1 has been released!

zenspider  on  1/21/2016

Graph is a type of hash that outputs in graphviz’s dot format. It comes with a command-line interface that is easily pluggable.

It ships with plugins to graph dependencies and status of installed rubygems, rake tasks, homebrew ports, mac ports, and freebsd ports, coloring leaf nodes blue, outdated nodes red, and outdated leaf nodes purple (red+blue).

OSX quick tip:

% sudo gem install graph --development
% sudo brew install graphviz
% gem unpack graph
% cd graph*
% rake gallery
% open gallery/*.png

Changes:

2.8.1 / 2016-01-21

[...]

zenspider

sexp_processor version 4.6.1 has been released!

zenspider  on  1/21/2016

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.6.1 / 2016-01-21

[...]

zenspider

flay version 2.7.0 has been released!

zenspider  on  1/21/2016

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.

Changes:

2.7.0 / 2016-01-21

[...]