Bloggar

Hur man uppnår parallellitet med Ruby MRI med I/O-bundna trådar

Language is not only used by people but even websites are using it. The language is one of the main problems that programmers are facing especially when Ruby’s is the matter. The performance that Ruby’s gives can be one of the reasons why programmers would not want to use the language. Because of the complaints …

Hur man uppnår parallellitet med Ruby MRI med I/O-bundna trådar Läs mer »

jQuery Image Resizing Plugin: ImgLiquid

ImgLiquid is a jQuery plugin for resizing the images so that these images can fit in the container. Features Optional Responsive (default settings are ‘off’). Lightweight: less than 2KBs gzipped Fill/Crop Align CallBacks Svg support Optional FadeIn Anim (default settings are ‘off’) Compatible with all browsers (Incl. ie6) Why to use? It’s a very good …

jQuery Image Resizing Plugin: ImgLiquid Läs mer »

Komma igång med Sass – Lär dig grunderna och dess installation

Perhaps you already heard about Sass (Syntactically Awesome StyleSheets) and you are interested in it, but don’t have an idea about how to set it up or incorporate it into your project. In the most basic form, Sass is known as the CCS processor, which makes it possible for the CCS writing to become more …

Komma igång med Sass – Lär dig grunderna och dess installation Läs mer »

Hur man använder Textacular Gem för att söka efter data i din Rails-applikation

We might have heard about a lot many gems which let us implement search functionality in our rails application; for example: searchkick, elasticsearch-rails, ransack and finally, sunspot to work with solr search engine. All these gems have their own advantages. Both searchkick and elasticsearch use redis to search the data as well as need to …

Hur man använder Textacular Gem för att söka efter data i din Rails-applikation Läs mer »

Varför välja Spree Commerce för din e-handelsbutik?

Spree Commerce is a popular open source software based on Ruby on Rails that e-commerce businesses are increasingly considering to base their online store on. If like these businesses, you are also considering it, here are some of the advantages of using Spree for your e-commerce store, that you’ll enjoy, on opting for it: Advantages …

Varför välja Spree Commerce för din e-handelsbutik? Läs mer »

Decent Exposure Gem – Adjö till upprepande instansvariabler

Introduction Github: Decent Exposure Gem Decent Exposure allows us to create exposed variables that can be used across the controller’s actions instead repeating instance variables. Exposed variables are accessible from views as well and memorize the resultant values. In other words, it is a helper for creating declarative interfaces in controllers. Some Points Improving encapsulation …

Decent Exposure Gem – Adjö till upprepande instansvariabler Läs mer »

Multi Tenancy genom att använda lägenhetspärla

Let us first understand the difference between single and multi-tenancy Single tenancy: Every customer is having their own software instance, own DB and it serves for only one customer. Here, the software can be customized to meet the specific customer requirements as it is independent. Multi tenancy: In this case, single instance of software application …

Multi Tenancy genom att använda lägenhetspärla Läs mer »

En guide för att konvertera en hash till en struktur i Ruby

Before we get deeper in to the conversion process, let us all first identify the difference between the two – the hash and the struct. This will let us help answer the question why some prefer using the struct than hash in Ruby. Differentiating Hash from Struct Hash is the collection of the key-value pairs …

En guide för att konvertera en hash till en struktur i Ruby Läs mer »

sv_SESwedish