makandra dev

Installing SSL certificates usually implies additionally using intermediate certificates. If one of them is missing, some SSL client implementations might...

stackoverflow.com

...want to "flash" the details container by hiding it and fading it back in. HTML Add a custom class to the element you want to animate, i.e. the details container...

makandra dev
plugins.jquery.com

...few) assumptions about your markup and is very customizable. You can basically embed any HTML into the slides, so you can mix images, videos, texts, and other stuff.

makandra dev

...form_for @user, :prefix => 'overlay' do |form| = form.text_field :email and get this as HTML: <input name="user[email]" id="overlay_user_email" (...) /> You can also put a :prefix into...

So you probably see the following error trace within your Passenger log file if you got here:

...at least. This should cover most e-mails. Note that this does not affect HTML e-mails, but they should come with their custom font settings anyway...

stackoverflow.com

#{link_to "label", "url"}! Haml is a great engine for writing shorter, readable HTML. However, there is one thing that troubles me regularly. Consider this Haml code: %p

So you want to find out how many horizontal pixels you have available on a mobile device. This is super...

You know that you can use jQuery's text() to get an element's contents without any tags.

railscasts.com

See this Railscast. Basically you can simply write views like index.xlsx.erb: ID Name Release Date Price <% @products.each do |product| %> <%= product.id...

makandra dev
curl.haxx.se

When making requests using curl, no cookies are sent or stored by default. However, you can tell curl to re...

...it is not available for format determination and Rails will set the format to html. Unfortunately, the constraint won't complain in this case and Rails even renders the sitemap.builder...

With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...

HAML SASS helpers partials When done, everything is simply compiled to static HTML and CSS, so no need to install anything on your server. If you receive an...

...live('click', function() { var hash = $(this).attr('href'); var offset = $(hash).offset(); if (offset) { $('html, body').animate({ scrollTop: offset.top }, 'slow'); location.hash = hash; return false; } }); Note that this could basically work...

Imagine the following HTML structure, where the scrolling container has overflow-y: scroll: +--scrolling container+-+ | | | +-child element+----+ | | | ++iframe++ | | | | | | | | | | | | | | +-----------------------+ | | | | <-- actually cut off by | +--------+ | <-- scrolling container +-------------------+ The issue: On iOS, the child...

...a certain class if no animation is wanted. Option 1: Enable animations only for html elements with class 'animate' @app.config ['$animateProvider', ($animateProvider) -> $animateProvider.classNameFilter(/\banimate\b/) ] Option 2: Disable animations only...

{ 'text': 'Task 2' } ] And you have this template: {{task.text}} Which renders this HTML: Task 1 Task 2 If you'd like to access the scope bound to the...

makandra dev

This is about converting Haml to ERB and not the other way round which you probably want! This process can...

I prefer using Opera's "User mode" to toggle an outlining of HTML elements quickly. This helps greatly when you want to see the actual dimensions of elements, e.g. for...

makandra dev

Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of about 5px between the lower edge of the image and...

When you print out a HTML pages, all raster images (like PNGs) will appear aliased. This is because a printer's resolution is usually much higher than that of a...

makandra dev
stackoverflow.com

...shouldn't have any text before the doctype declaration. If you've got any HTML comments there, for example, the IE will switch to quirks mode. Finally, check if you...

Sometimes you want/have to send specific http(s) requests. You can do that easy with curl or just write the...