2 USB drives > 2GB
- Grab the latest Ubuntu Desktop iso image
When developing a program in Ruby, you may sometimes encounter a memory leak. For a while now, Ruby has a facility to gather information about what objects are laying around: ObjectSpace.
There are several approaches one can take to debug a leak. This discusses a time-based approach, where a full memory dump is generated every, say, 5 minutes, during a time that the memory leak is showing up. Afterwards, one can look at all the objects, and find out which ones are staying around, causing the
if defined?(NewRelic) | |
module NewRelic | |
module Agent | |
module Instrumentation | |
class Grape < ::Grape::Middleware::Base | |
def before | |
begin | |
NewRelic::Agent.set_transaction_name(transaction_name, | |
category: :rack) | |
rescue => e |
/** @jsx React.DOM */ | |
'use strict'; | |
var React = require('react'); | |
var AnimatableComponent = React.createClass({ | |
propTypes: { | |
tag: React.PropTypes.component.isRequired, |
config.middleware.use RoutesReloader |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
SELECT | |
sum(heap_blks_read) as heap_read, | |
sum(heap_blks_hit) as heap_hit, | |
sum(heap_blks_hit) / (sum(heap_blks_hit) + sum(heap_blks_read)) as ratio | |
FROM | |
pg_statio_user_tables; |
Введение
Начать стоит отсюда. Не пугайтесь то, что это книга по незнакомой OS, эти термины практически везде одинаковые и здесь они изложены в понятной для начинающих форме.
http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html
Прочесть нужно треть главы до подраздела "Starting a process", если С не пугает, читайте полностью. После прочтения вы будете понимать, что такое process, thread, mutex, priorites, semaphores, scheduler, contex-switch, kernel states.
Ruby
#element{ | |
background-image: url('/images/sprite.png'); | |
background-repeat: no-repeat; | |
background-position: -3px 0; | |
} | |
@media print, screen, | |
(-webkit-min-device-pixel-ratio: 1.25), | |
(~`"-o-min-device-pixel-ratio: 1.25/1"`), | |
(min--moz-device-pixel-ratio: 1.25), |