- not detected automatically from edid
- check physical screen dimensions with xrandr
- put those into /etc/X11/xorg.conf.d/90-monitor.conf
Section "Monitor" Identifier "" DisplaySize 293 165 # xrandr reports 294, but 293 makes it 277x277dpi instead of 276x277 EndSection
This file contains hidden or 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
GC.disable | |
before = ObjectSpace.count_objects | |
Array.new(10000).each do |i| | |
[0,1].each_with_index do |j, index| | |
end | |
end | |
after = ObjectSpace.count_objects | |
puts "# of arrays: %d" % (after[:T_ARRAY] - before[:T_ARRAY]) | |
puts "# of extra Ruby objects: %d" % (after[:T_NODE] - before[:T_NODE]) |
This file contains hidden or 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
require 'csv' | |
GC.disable | |
methods = [:all?, :any?, :chunk, :collect, :collect_concat, :compact, :count, [:cycle, 1], :delete_if, :detect, :drop_while, :each_entry, :each, :each_index, :each_key, :each_pair, :each_value, :each_with_index, [:each_with_object, Object.new], :fill, :find, :find_all, :find_index, :flat_map, [:grep, 0], :group_by, :inject, :keep_if, :map, :none?, :one?, :reduce, :reject, :reverse, :reverse_each, :rotate, :select, :shuffle, :uniq] | |
# print only commonly used | |
methods = [:all?, :any?, :collect, [:cycle, 1], :delete_if, :detect, :each, :each_index, :each_key, :each_pair, :each_value, :each_with_index, [:each_with_object, Object.new], :fill, :find, :find_all, [:grep, 0], :inject, :map, :none?, :one?, :reduce, :reject, :reverse, :reverse_each, :select] | |
creators = [ | |
def new_array |
This file contains hidden or 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
--- libstreamanalyzer/cmake/FindCLucene1.cmake.orig 2013-02-05 15:34:52.000000000 -0600 | |
+++ libstreamanalyzer/cmake/FindCLucene1.cmake 2014-11-11 14:04:57.000000000 -0600 | |
@@ -5,3 +5,4 @@ | |
pkg_check_modules(CLUCENE1 libclucene-core) | |
+SET(CLUCENE1_LDFLAGS ${CLUCENE1_LDFLAGS} -lclucene-shared) |