Change Photo
Mason Schumm

Answers by Mason Schumm

Create Diagonal Line in Drawable?

Here is a drawable for a diagonal line <?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android....

Proper database design and relationship for invoicing application [closed]?

Well it's hard to say, because only you know the specification of your application and what it should do and you are posting some concept ...

How to echo shell commands as they are executed?

set -x or set -o xtrace expands variables and prints a little + sign before the line. set -v or set -o verbose does not expand the variab...

How to create JSON object using jQuery?

Just put your data into an Object like this: var myObject = new Object(); myObject.name = "John"; myObject.age = 12; myObject.pets = ["ca...

link_to with target blank?

Why would you want to override link_to? It's already defined in Rails, just use it like this : link_to "GOOGLE", "http://www.google.com",...

Create a 4x4 responsive grid of squares with a margin of 20px on each side of the container??

You can simply add section{ margin:-1%; padding:20px; } DEMO This way you can have your 20px fixed gutters on each side of the...

Removing body margin in CSS?

I would say that using: * { margin: 0; padding: 0; } is a bad way of solving this. The reason for the h1 margin popping out of the...

Rails 3. How to get the difference between two arrays??

First you would get a list of shipping_id's that appear in invoices: ids = i.map{|x| x.shipment_id} Then 'reject' them from your origin...

PHP Command, not found?

Whenever you install XAMPP, you get all of the Apache, MySQL, PHP stack. The problem is, XAMPP won't link binaries to your PATH, because y...

Parse String into Number?

Number cannot be instantiated because it is an abstract class. I would recommend passing in Numbers, but if you are set on Strings you can...

How do you round a float to two decimal places in jruby?

Float#round can take a parameter in Ruby 1.9, not in Ruby 1.8. JRuby defaults to 1.8, but it is capable of running in 1.9 mode. ...

Setting border colour with jquery?

use return false and css("border","1px solid red") instead of css("border-color","red") $(document).ready(function(){ $('.ip').click(fu...

LDAP root query syntax to search more than one specific OU?

You can!!! In short use this as the connection string: ldap://<host>:3268/DC=<my>,DC=<domain>?cn together with your s...

Alternate tool for a GhostDoc type of tool?

If you start a comment with /// in VS2010, it'll create basic parameters in XML for you based on the function you're commenting. http://m...