- Twitter: @hone02
- Website or Blog: http://hone.heroku.com
- Company: Example Ltd. http://www.heroku.com
There's been some known memory issues when upgrading from Ruby 2.0.0 to Ruby 2.1. Ruby 2.1 introduced a new garbage collector (GC), RGenGC, to improve performance. It traded more memory use for speed. The new GC does less aggressive memory clearing. Doing less work means it's faster.
This sounds great, but on lower memory instances it became an issue since there is less memory available to trade. This patch had been applied to Ruby 2.1 and the hopes are it will solve this [issue](https://bugs.ruby-lang.org/issues/ 9607#note-11). By introducing more frequent GC runs, it will reduce the amount of memory being used.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> | |
#include "image_loader.h" | |
#include <cv.h> | |
#include <highgui.h> | |
/** | |
* constructs a box filter. a matrix with all 1s and is normalized. | |
* @param size of box filter as an int. | |
*/ | |
void makeBoxFilter( CvMat * mat, int w ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <mpi.h> | |
#include <iostream> | |
#include <string.h> | |
#include <gameoflife.hpp> | |
const int DIMENSIONS = 16; | |
const int DEAD = 0; | |
const int ALIVE = 1; | |
const int ITERATIONS = 64; | |
const int LENGTH = DIMENSIONS * DIMENSIONS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# detach on hangup | |
autodetach on | |
# # don't display the copyright page | |
startup_message off | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]' | |
# terminfo and termcap for nice 256 color terminal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> Mixing in Lockdown version: 1.1.0 | |
=> Requiring Lockdown rules engine: /home/hone/Projects/oib/boxboss/lib/lockdown/init.rb | |
DashboardController | |
responding to GET index | |
>> Lockdown: Permission not found in db: Login, creating. | |
>> Lockdown: Permission not found in db: Venue Director Dashboard, creating. | |
>> Lockdown: Permission not found in db: Register Account, creating. | |
>> Lockdown: Permission not found in db: My Account, creating. | |
>> Lockdown: UserGroup not in the db: Venue Director, creating. | |
should redirect to the login page if the user is not logged in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In a Clarion workshop, victims, I mean participants, usually sit or lounge in a | |
rough circle, where each in turn has to sit silently while every other participant | |
attacks, I mean critiques, the victim’s baby, I mean manuscript. The process | |
is brutal at the start, but because everyone is both attacker and attacked, most | |
participants soon learn valuable lessons in how to take and give criticism. And | |
until you’ve learned to take criticism you will always meet barriers to growth | |
in your craft. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bin/git_pivot current_sprint | |
+--------------------------------------------------+ | |
| ID | Type | Owner | State | Name | | |
+--------------------------------------------------+ | |
| 683969 | feature | | unstarted | RT action | | |
+--------------------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test | |
def self.foo | |
puts 'hi' | |
end | |
def self.boo | |
puts 'world' | |
end | |
end | |
[:foo, :boo].each {|method_name| Test.send(method_name) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# normal new.html.erb | |
<<ERB | |
<p>This is some text</p> | |
ERB | |
# outputting a variable name, | |
# name = "joe" | |
<<ERB | |
<p>Hello <%= name %></p> | |
ERB |
OlderNewer