HTML5 How To Skip Navigation When Name Attribute Is Obsolete

HTML5 How To Skip Navigation When Name Attribute Is Obsolete

In the Web Content Accessibility Guidelines is states that you should supply a "skip" link that jumps you (for example) over a navigation block and straight into the content. This is particularly useful for impaired users who use a screen-r

Increase the grid spacing in android

Increase the grid spacing in android

I have a gridview in which i have a lot of items in three colums. I want to increase the spacing between them. How can I do that in android? 1:You can use android:verticalSpacing and android:horizontalSpacing in GridView tag and provide

Android push notification: Get data, store and display on new activity on click of notification

Android push notification: Get data, store and display on new activity on click of notification

I am developing an application which is having push notification functionality. I followed the following link as Android Push NotificationI tried and successfully send URL and open the web page on click of notification by doing the followin

FragmentTransaction : replace and addToBackStack not working together?

FragmentTransaction : replace and addToBackStack not working together?

I'm fairly new to Android development and now running in to weird behaviour.I have an empty FrameLayout to be the container of a fragment.If user press a button for the first time, generate new Fragment and put inside container.If user pres

why am I getting TypeError: obj.addEventListener is not a function?

why am I getting TypeError: obj.addEventListener is not a function?

Here's my code:function addEvent( obj, type, fn ) { if ( obj.attachEvent ) { obj['e'+type+fn] = fn; obj[type+fn] = function(){obj['e'+type+fn]( window.event );} obj.attachEvent( 'on'+type, obj[type+fn] ); } else obj.addEventLi

xcode custom ttf font not working

xcode custom ttf font not working

ok so I've been reading through SO and doing all sorts of googling but I cant figure out why my font isn't working. I think I've done everything right, but when I run the app, the text on my button appears with the standard system font inst

Optimizing Code for MKMapView - Large Number of Annotations

Optimizing Code for MKMapView - Large Number of Annotations

I have a modal view in my app which displays a UIMapView. I then add a large number of annotations (over 800) to this map view (code below).The problem is that the user is forced to wait a minute or so while all the pins load. Also the app

Twig: prevent parsing of client-side templates

Twig: prevent parsing of client-side templates

I need to output a portion of client-side handlebars templates, which has tags similar to twig's 'say' tags: And twig attempts to parse these templates. How do I prevent it? Is it possible to mark a section of a template as plain text?

Android : How to show dialog or activity over lock screen[ not unlock the screen]

Android : How to show dialog or activity over lock screen[ not unlock the screen]

I hava a app, it will receive msg from server and make a dialog to user.So when phone is on lock screen i want dialog will show on the top of lock screen but not unlock it.could anyone give me suggestion ? 1:public void onAttachedToWindo

What is the best way to parse a web page in Ruby?

What is the best way to parse a web page in Ruby?

I have been looking at XML and HTML libraries on rubyforge for a simple way to pull data out of a web page. For example if I want to parse a user page on stackoverflow how can I get the data into a usable format?Say I want to parse my own

Double fragment rotating Android with ActionBar

Double fragment rotating Android with ActionBar

I've made a simple Android Activity with an ActionBar to switch between 2 fragments.It's all ok until I rotate the device. In facts, when I rotate I've got 2 fragment one over the other: the previous active one and the first one.Why?If the

HTML img scaling

HTML img scaling

I'm trying to display some large images with HTML img tags. At the moment they go off the edge of the screen; how can I scale them to stay within the browser window?Or in the likely event that this is not possible, is it possible to at leas

Swift - Cast Int into enum:Int

Swift - Cast Int into enum:Int

I am very new to Swift (got started this week) and I'm migrating my app from Objective-C. I have basically the following code in Objective-C that works fine:typedef enum : int { MyTimeFilter1Hour = 1, MyTimeFilter1Day = 2, MyTimeFi

Rails Devise I18n Flash Messages with Twitter Bootstrap

Rails Devise I18n Flash Messages with Twitter Bootstrap

Hello I am new to ruby on rails and I am struggling to understand I18n's flash messages. I am using devise, rails 4, and twitter bootstrap.I understand that devise only uses flash[:notice] and flash[:alert]. I am able to get flash messages

Viewport meta tags vs Media Queries?

Viewport meta tags vs Media Queries?

I would love to know, to optimize your website for Tablets, desktops and smarthpones, what is best to use: Media Queries or the Viewport meta tags? see code:vs/* Smartphones (portrait and landscape) ----------- */@media only screen and (min

How to supported latex in github-pages

How to supported latex in github-pages

I use jekyll to write post and show it in github-pages. my source file is writen with markdown.How can I insert formula into the markdown file?I don't want to save the formula into a image. and load the image in markdown file. I actually wa

How to declare traits as taking implicit “constructor parameters”?

How to declare traits as taking implicit “constructor parameters”?

I'm designing a class hierarchy, which consists of a base class along with several traits. The base class provides default implementations of several methods, and the traits selectively override certain methods via abstract override, so as

JSON.stringify output to div in pretty print way

JSON.stringify output to div in pretty print way

I JSON.stringify a json object by result = JSON.stringify(message, my_json, 2)The 2 in the argument above is supposed to pretty print the result. It does this if i do something like alert(result). However, I want to output this to the use

How to make a Ruby string safe for a filesystem?

How to make a Ruby string safe for a filesystem?

I have user entries as filenames. Of course this is not a good idea, so I want to drop everything except [a-z], [A-Z], [0-9], _ and -. For instance:my§document$is°° very&interesting___thisIs%nice445.doc.pdfshould becomemy_document_is_____

Add hover text without javascript like we hover on a user's reputation

Add hover text without javascript like we hover on a user's reputation

In stackoverflow, when we hover on a user's reputation we see a text. I have seen this at many places and the source code tells me that it can be done without js. And i tried and got only this- hover me 1:Use the title attribute.hover me

Add space between HTML elements only using CSS

Add space between HTML elements only using CSS

I have several same HTML elements going one after another:123I'm looking for the best way of adding space BETWEEN the elements using CSS only[no space] [1] [space 10px] [2] [space 10px] [3] [no space]Additionally:Please write down bro

Angularjs: Multiples partials in single html?

Angularjs: Multiples partials in single html?

Is possible retrieve multiples html partials in one single html? I've the next situation:Template: {header} {main} {footer}/index: header:"Welcome" main:"welcome text" footer:""/help: header:"Help title" main:"faq tips" footer"Back to home"

Best way to document anonymous objects and functions with jsdoc [closed]

Best way to document anonymous objects and functions with jsdoc [closed]

Edit: This is technically a 2 part question. I've chosen the best answer that covers the question in general and linked to the answer that handles the specific question.What is the best way to document anonymous objects and functions with j

How to write one new line in Bitbucket markdown?

How to write one new line in Bitbucket markdown?

Is it possible to write a new line (NOT a paragraph) in the Bitbucket markdown?Two new lines in the source creates one new paragraph. I only want a new line. And I don't want to use a code block. 1:It's possible, as addressed in Issue #7

How to pass a parameter to pathFor in Handlebars for Iron-Router with Meteorite?

How to pass a parameter to pathFor in Handlebars for Iron-Router with Meteorite?

I have a simple route with a parameter:this.route('article', { path: '/article/:_id', data: function() { return Articles.findOne(this.params._id); } });I would like to have use the pathFor handlebars helper here with the _i