background preloader

Jekyll/jekyll

Jekyll/jekyll

FluxBB - fast, light, user-friendly PHP forum software Criando sua própria RubyGem Todo mundo já deve ter usado pelo menos uma vez na vida as famosas gems. Elas ajudam muito na hora distribuir e usar bibliotecas Ruby, sem dúvida nenhuma. Mas o que nem todo mundo sabe é que criar uma gem é muito mais fácil do que parece. Neste artigo você verá como criar e distribuir sua própria gem. Entendo a gem Uma gem nada mais é que um arquivo .tar.gz. $ tar -ztvf bundler-0.9.26.gem -rw-r--r-- 0 wheel wheel 47579 Dec 31 1969 data.tar.gz -rw-r--r-- 0 wheel wheel 993 Dec 31 1969 metadata.gz Neste arquivo, você encontra o código Ruby propriamente dito (data.tar.gz) e os metadados (metadata.gz), que é a gem specification (ou apenas gemspec) em formato YAML. Uma gem é composta por uma estrutura mais ou menos definida de arquivos e diretórios, como você pode ver abaixo. O diretório lib é de longe o mais importante. O RubyGems substitui o método Kernel#require com sua própria implementação, que faz uma busca pela gem que você precisa utilizando os diretórios adicionados ao GEM_PATH. Ótimo!

phpBB • Free and Open Source Forum Software o um único desenvolvedor Rails fez para escalar um site com 10 milhões de requisições por dia Publicado por Rafael Rosa em 11 de October de 2009 O Ravelry é uma comunidade on-line de tricô e crochê gerida pelo casal Casey e Jessica Forbes. Há algumas semanas, eles foram entrevistados por Tim Bray onde revelaram que seu site tem mais de 400.000 usuários registrados e consegue 3,6 milhões de pageviews por day - que geram 10 milhões de requisições por dia no Rails, já que recebem muitas chamadas de API, RSS e AJAX. Todd Hoff do HighScalability.com coletou todos os detalhes que conseguiu sobre o Ravelry e escreveu o artigo " Como a Ravelry Escalou para 10 Milhões de Requisições Usando Rails. " (em inglês), que é uma excelente análise sobre a estrutura do site, mas se você preferir a versão resumida, eles estão usando: Xen para virtualização HAProxy Nginx Tokyo Cabinet (para armazenamento de objetos grandes) Nagios New Relic Amazon S3 Amazon Cloudfront (for CDN) Sphinx Memcached

Creating a basic Joomla! template It has been suggested that this article or section be split into specific version Namespaces. (Discuss). If version split is not obvious, please allow split request to remain for 1 week pending discussions. Proposed since 60 days ago. Introduction The purpose of this tutorial is to serve as an introduction to creating Joomla! Setting up a directory structure To make the most basic template, create a new folder in the templates folder. Using your favourite text editor create the files index.php and templateDetails.xml. Although it is fine to place all your CSS code directly in your index.php file to start, many web developers prefer to place their CSS code in a separate file that can be linked from multiple pages using the link tag. This is the most basic practical setup. mynewtemplate/ css/ template.cssimages/index.phptemplateDetails.xml Creating a basic templateDetails.xml file The templateDetails.xml file is essential. The syntax of the file is different for each Joomla version. For <? <? <?

Roadmap for Learning Rails | techiferous Accelerating Your Learning If you have no prior development experience, one of the worst things you can do when learning Rails is to just dive in. Some of the concepts build on each other, so jumping in would be like signing up for a calculus class before you’ve learned algebra. Another difficulty for a beginner is figuring out what to learn. Another mistake is spending too much time mastering a concept when you only need a basic understanding. Therefore, to accelerate your learning, learn the right things in the right order at the right depth. The following roadmap will help you do exactly that. But First Some Ground Rules… It takes a significant investment of time to learn Rails. know the difference between a web site and a web applicationknow the difference between a CMS and a web applicationknow the difference between a programming language and a web frameworkknow that Rails is a web framework (not a CMS, not a programming language) that helps you create web applications Ruby Key Concepts

[ADVANCED] MRI Memory Allocation, A Primer For Developers | Engine Yard Ruby on Rails Blog 1.8.61.8.7memprof Memory allocation in the MRI 1.8.x series of Ruby is seen by many developers to be a black box. A developer writes code and the interpreter just does some magic to make sure that the memory for the code is allocated, and more importantly, eventually garbage collected. And generally... that attitude is a productive one. It's very useful to have a general understanding of the mechanics involved, as they can sometimes steer you towards making better design choices in applications where your memory footprint matters; it's also very useful if things start going wrong with the memory footprint of the code. There are two types of memory allocations that occur in MRI 1.8.x. The second type of allocation is when Ruby allocates memory off of the C heap to provide storage for the actual data contained within an object. foo = 'x' * (1024 * 1024 * 10) What actually happens there is that Ruby uses a slot out of its heap to store a String. Try it in irb. A ps shows what happened:

meme » jésus lopes A API do Meme pode user acessada utilizando o YQL (Yahoo Query Language) que permite usar uma sintaxe similar ao SQL para recuperar os dados do Meme, um exemplo seria: SELECT * FROM meme.info WHERE name='jtadeulopes'; Diante disso, durante o Yahoo! O desenvolvimento ainda esta no início, mas já é possível realizar as seguintes ações: Buscar um usuárioFollowers e FollowingBuscar postsBusca os posts mais populares do momento Instalando A instalação é bem simples, basta executar o comando sudo gem install meme Usando Localizando um usuário É possível localizar um usuário e suas informações desta maneira Buscando posts posts = Meme::Post.find('brhackday') post = posts.first post.content => "RT @codepo8: And I am off - plane leaves BR for London. Você pode especificar o tipo de mídia que deseja localizar, as opções são: photo, video, audio ou text. Por padrão, o tipo text é assumido caso nenhum seja especificado. posts = Meme::Post.find('meme rocks', :type => :photo) Populares Quer contribuir?

RISCfuture&#039;s dropbox at master - GitHub

Related: