Other Languages

POL-Y-GLOT. I-AM-NOT.
Yes you are. You are learning Ruby, Rails, testing…you’re already multilingual. In this profession you are always going to be trying out new ways to do things, which includes new languages. For Ruby on Rails development, it makes sense to know some HTML, CSS, Sass, JavaScript, AJAX, JSON, SQL, HAML, and jQuery, just to name a few. As most of these will be used as tools to compliment your web apps, you probably will not be using them as regularly as you do the core languages. That said, you’ll want to be sure to capture and remember how you applied the language. What, if anything, needed to be done to use the language inside a Ruby on Rails application? What was unique about the circumstances, the code, and the solution you arrived at? What were the helpful resources?

How to open a link in the same new named tab, every time

11/14/17  Public, Tricks, Other Languages

When you want a link to open up in a new tab, you simply set the target to _blank:

<a href="http://www.starfall.com/" target="_blank">Starfall</a>

But what if you have an index view containing all your Posts, and you want...

1 vote - harrylevine

When making API call In postman, how to pass a JSON string

11/07/17  Public, Online Resources, Other Languages

  • after selecting POST
  • click the Body tab
  • click the raw radio button
  • select the JSON option from the drop-down
  • add the JSON code

1 vote - harrylevine

Disable an ES lint rule - inline

04/24/17  Public, Other Languages

http://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments

The linting error I was receiving was:

Do not mutate state directly. Use setState()

Here is an example of applying the inline disabling of the r...

1 vote - harrylevine

Encode an SVG file using base64 encoding

09/22/16  Public, Command Line, Tricks, Other Languages

Here is how to encode an SVG file, using base64 encoding, and then leverage the encoded string to set an element's background-image property to the SVG file in question.

1 - Open up an irb session
2 - Read the file into a variable, using...

1 vote - harrylevine