詳細検索
Avatar

maeno

Review of Markdown Notation

Review of Markdown Notation

DEVLAB has been revised and made into an official blog in earnest as IsaB, and the number of people who write articles should increase in the future, so I transcribed this post as a welcome document for this blog as a **Markdown notation template** and **for confirming the display style**, but it is also a TIPS that is not particularly problematic even if it is released to the public, so I will publish it as an article. What is markdown notation in the first place? ── There may be many people who say, >...

Building a CSS/JavaScript Compilation Environment with Gulp ─ CentOS

Building a CSS/JavaScript Compilation Environment with Gulp ─ CentOS

Traditionally, CSS and JavaScript, the main assets of the web frontend, were difficult to manage at the source level, and quickly entered chaotic territory and became difficult to maintain. To make CSS and JavaScript in this chaotic area easier to maintain and manage at the source level, the compiled build mechanisms of Grunt and Gulp were created. In today's world, front-end development is SCSS (SASS, LES...

Building a CSS/JavaScript Compilation Environment with Gulp ─ Windows

Building a CSS/JavaScript Compilation Environment with Gulp ─ Windows

I have a strong feeling now, but in the world, the default development method in front-end development is to improve the efficiency of CSS and JavaScript coding with SCSS (SASS, LESS, etc.), CoffeeScript, etc., while at the same time making it easier to maintain and manage the source. I'm a big fan of incorporating technology in that area, and I used to code CSS and JavaScript raw, but recently I've been doing it...

No matter what I do in Rails, when I feel like crying when I am told Routing Error uninitialized constant ~

No matter what I do in Rails, when I feel like crying when I am told Routing Error uninitialized constant ~

The Ruby On Rails app, which was running normally until yesterday, until mid-morning, and just a while ago, suddenly got "Routing Error: Uninitialized constant XXXXX...

The primary key of the DB should be the surrogate key, not the compound primary key.

The primary key of the DB should be the surrogate key, not the compound primary key.

When I was researching about Unicode's "surrogate pairs" in a separate matter, an article about the "surrogate key" and "compound primary key" in the database was caught in the **surrogate** connection and I derailed as much as I could (laughs)...

I tried to summarize Ruby's confusing arrays, hashes, and symbols.

I tried to summarize Ruby's confusing arrays, hashes, and symbols.

Happy New Year everyone. Well, I think I'll start my first post in 2015 with the hottest Ruby story right now. ...

Using the AWS SDK for Ruby to check the status of your EC2 instance

Using the AWS SDK for Ruby to check the status of your EC2 instance

On the application side, there are times when you want to check the current health status of any AWS EC2 instance in real time. For example, when starting or stopping an EC2 instance from an external application, this is the case where you want to check the operation status of the instance and run the next process when the status changes. SDK for...

Get top-level task names within Capistrano 3 tasks

Get top-level task names within Capistrano 3 tasks

When I was writing a task in Capistrano3, I had a hard time obtaining the top-level task name because I had a hard time obtaining the top-level task name because I had a hard time subtracting the name of the top-level task executed as a cap command in the task. Basically, if you want to get your task name in a task in Capistrano3, you can draw it as an argument to the block as follows: ``` desc "main task" task...

Get the results of a MySQL query in bare Ruby

Get the results of a MySQL query in bare Ruby

When processing Ruby + MySQL, I think there are many cases where 'ruby-mysql' or 'mysql2' is used in the MySQL operation system libraries, but since it was necessary to perform MySQL query operations in a raw Ruby environment without these libraries, I tried to generalize the source I wrote at that time and summarize it. Well... There may be almost no need, but I thought I'd share it as TIPS. ...

How to prevent WordPress username leakage using author queries

How to prevent WordPress username leakage using author queries

DEVLAB is run on WordPress, and I found an article about WordPress that caught my attention. **The WordPress site's home URL should include "? author=x" will reveal the username on the site ** (* For more information, see MT Systems' WordPress...

What to do when a task starts twice in Capistrano 3

What to do when a task starts twice in Capistrano 3

When I ran a task in Capistrano3 by changing the stage environment, I fell into the symptom of the task being launched twice. Since the task is executed in duplicate, even if you set "two" AWS instances to be launched, "four" will occur, and the queries issued to MySQL will also be doubled, and the records to be INSERTED will be inserted in duplicates. The settings that were temporarily written to the file were also overwritten by the subsequent tasks that were started twice, and the dep...

Deploying EC2 Instances in Capistrano3 from New Creation to Initial Setup (Summary)

Deploying EC2 Instances in Capistrano3 from New Creation to Initial Setup (Summary)

So far, we have created a new AWS EC2 instance and made it a task in Capistrano 3 up to the initial configuration for that instance. Although it was difficult, we finally got to the point where the EC2 instance was ready and all we had to do was install the middleware and applications. Therefore, this time, I would like to summarize the deployment flow so far. ...