<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>우물 128번지</title>
    <description>멋사라는 울타리 안에 모인 사자들은 어느새 그 넓던 울타리를 가득 채웠습니다.
이제 사자들은 스스로 자신의 울타리를 넓혀갑니다.

더 많은 사자들을 위해, 스스로를 위해,
초원을 동경하는 사자 대신, 울타리를 초원으로 만드는 사자가 됩니다.
</description>
    <link>https://cowx2ater.github.io/</link>
    <atom:link href="https://cowx2ater.github.io/rss" rel="self" type="application/rss+xml"/>
    <pubDate>Thu, 02 Jul 2020 17:50:42 +0900</pubDate>
    <lastBuildDate>Thu, 02 Jul 2020 17:50:42 +0900</lastBuildDate>
    <generator>Jekyll v3.8.7</generator>
    
      <item>
        <title>레일즈 through collection 오류</title>
        <description>&lt;h1 id=&quot;180202-오류&quot;&gt;180202 오류&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;view&lt;/em&gt;&lt;/p&gt;
&lt;div class=&quot;language-erb highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;container&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;simple_form_for&lt;/span&gt; &lt;span class=&quot;vi&quot;&gt;@influencer&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;error_notification&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;row&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-sm-6&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:location&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-sm-6&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:gender&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;as: :radio_buttons&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;collection: &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'male'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'1'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;'female'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'2'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-sm-12&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:image&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-sm-12&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:description&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-sm-4&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;c&quot;&gt;&amp;lt;!-- 원래는 이거다. --&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;collection_check_boxes&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:language_ids&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:name&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;l&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
          &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;l&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;check_box&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
          &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;l&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;label&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt; &lt;span class=&quot;ni&quot;&gt;&amp;amp;nbsp;&amp;amp;nbsp;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
		&lt;span class=&quot;c&quot;&gt;&amp;lt;!-- 이부분 이 내가 암걸린 부분 강제로 만들었다. --&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;each_with_index&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;-%&amp;gt;&lt;/span&gt;
            &lt;span class=&quot;nt&quot;&gt;&amp;lt;label&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;for=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;influencer_influencer_languages_attributes_&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;_language_id&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&amp;lt;input&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;type=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;checkbox&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;value=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;influencer[influencer_languages_attributes][&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;][language_id]&quot;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;id=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;influencer_influencer_languages_attributes_&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;_language_id&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;

        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;simple_fields_for&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:language_ids&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;language&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
          &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;association&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:influencer_languages&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;collection: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Language&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:label_method&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:name&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:value_method&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:id&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-sm-4&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:category_ids&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;collection: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Category&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-sm-4&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:client_ids&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;collection: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Client&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;all&lt;/span&gt;&lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

    &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;row buttons-row&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;div&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;class=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;col-md-6 col-sm-6&quot;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
        &lt;span class=&quot;cp&quot;&gt;&amp;lt;%=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;submit&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;정보 입력&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;class: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;btn btn-primary btn-block btn-round&quot;&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
      &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;cp&quot;&gt;&amp;lt;%&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;cp&quot;&gt;%&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;controller&lt;/em&gt;&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;influencer_params&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:influencer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;permit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:location&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:description&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:image&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:gender&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;language_ids: &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[],&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;influencer_languages_attributes: &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:language_id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;저기 language_ids로 위의 코드가 작동된다. attributes 코드는 뻘짓의 후예&lt;/p&gt;
</description>
        <pubDate>Fri, 11 May 2018 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2018/05/11/%EB%A0%88%EC%9D%BC%EC%A6%88-through-collection-%EC%98%A4%EB%A5%98/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2018/05/11/%EB%A0%88%EC%9D%BC%EC%A6%88-through-collection-%EC%98%A4%EB%A5%98/</guid>
        
        <category>rails</category>
        
        
      </item>
    
      <item>
        <title>아나콘다</title>
        <description>&lt;h1 id=&quot;anaconda&quot;&gt;anaconda&lt;/h1&gt;

&lt;h3 id=&quot;설치법&quot;&gt;설치법&lt;/h3&gt;

&lt;p&gt;&lt;a href=&quot;https://www.anaconda.com/download/&quot;&gt;링크&lt;/a&gt;에서 다운로드로 가서 버전에 맞는 배포판을 설치하세요.&lt;/p&gt;

&lt;h3 id=&quot;사용법&quot;&gt;사용법&lt;/h3&gt;

&lt;p&gt;Anaconda Navigator를 클릭해서 사용하세요.&lt;/p&gt;
</description>
        <pubDate>Tue, 23 Jan 2018 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2018/01/23/%EC%95%84%EB%82%98%EC%BD%98%EB%8B%A4/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2018/01/23/%EC%95%84%EB%82%98%EC%BD%98%EB%8B%A4/</guid>
        
        <category>rails</category>
        
        
      </item>
    
      <item>
        <title>DeepLearning A-Z - 1</title>
        <description>&lt;h1 id=&quot;deeplearning-a-z---1&quot;&gt;DeepLearning A-Z - 1&lt;/h1&gt;

&lt;p&gt;본 내용은 Udemy에 Deep Learning A-Z : HandsOn Artificial Neural Networks 인강을 보고 정리한 것입니다.&lt;/p&gt;

&lt;h3 id=&quot;artificial-neural-networks인공신경망&quot;&gt;Artificial Neural Networks(인공신경망)&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;인공신경망의 직관적 개념&lt;/li&gt;
  &lt;li&gt;인공신경망의 구축 방법&lt;/li&gt;
  &lt;li&gt;단일 관찰 결과의 예측법&lt;/li&gt;
  &lt;li&gt;k-Fold Cross Validation을 사용하여 ANN의 성능을 평가하는 방법&lt;/li&gt;
  &lt;li&gt;how to tackle overfitting with Dropout&lt;/li&gt;
  &lt;li&gt;how to do some Parameter Tuning on your ANN to improve its performance&lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Tue, 23 Jan 2018 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2018/01/23/DeepLearning-A-Z-1/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2018/01/23/DeepLearning-A-Z-1/</guid>
        
        <category>rails</category>
        
        
      </item>
    
      <item>
        <title>hwp 수식을 LaTex로(hml-equation-parser)</title>
        <description>&lt;h1 id=&quot;hwp-수식을-latex로hml-equation-parser&quot;&gt;hwp 수식을 LaTex로(hml-equation-parser)&lt;/h1&gt;

&lt;p&gt;수학 수식을 처리하는 방법이 항상 문제였는데 오픈 소스로 해결했다..
&lt;a href=&quot;http://www.zdnet.co.kr/news/news_view.asp?artice_id=20161229092520&quot;&gt;관련기사&lt;/a&gt;, &lt;a href=&quot;https://github.com/OpenBapul/hml-equation-parser&quot;&gt;github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;일단 이 패키지 작업 흐름은&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;hwp 파일을 hml 형식으로 변환해서 저장하기&lt;/li&gt;
  &lt;li&gt;그 hml안의 수식을 LaTex화한 html 코드로 변환&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;이다.&lt;/p&gt;

&lt;h2 id=&quot;작업-환경&quot;&gt;작업 환경&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;http://c9.io&quot;&gt;Cloud9 blank&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;installation&quot;&gt;Installation&lt;/h2&gt;

&lt;p&gt;만약 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;E: Unable to locate package&lt;/code&gt; 이런 오류가 생길 수도 있으니 미리 update 시켜주자.&lt;a href=&quot;https://community.c9.io/t/apt-get-install-unable-to-locate-packages/10561&quot;&gt;링크&lt;/a&gt;&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get update
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;그 다음 &lt;strong&gt;hml-equation-parser&lt;/strong&gt; 패키지를 설치해야한다. 
하지만 주의해야 할 점이 있는데&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;a href=&quot;https://pandoc.org/installing.html&quot;&gt;&lt;strong&gt;pandoc&lt;/strong&gt;&lt;/a&gt;을 미리 설치해야 한다.&lt;/li&gt;
  &lt;li&gt;python3로 실행해야 한다.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://pypi.python.org/pypi/typing/3.6.2&quot;&gt;&lt;strong&gt;typing&lt;/strong&gt;&lt;/a&gt;이라는 파이썬 패키지를 미리 설치해야 한다.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;pandoc
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;pip3 &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;typing
&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;pip3 &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;hml_equation_parser
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;성공적으로 설치했는지 확인해보자!&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;python3
&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; import hml_equation_parser as hp
&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt; hp.eq2latex&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;LEFT ⌊ a+b RIGHT ⌋&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;'\\left \\lfloor a+b \\right \\rfloor'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;이렇게 나온다면 성공!!&lt;/p&gt;

&lt;p&gt;예제 코드를 실행해보자!
hml 확장자를 가진 파일(ex. &lt;em&gt;test.hml&lt;/em&gt;)을 준비하자.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;test.py&lt;/em&gt;&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;hml_equation_parser&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hp&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;doc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parseHmlSample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;test.hml&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;  &lt;span class=&quot;c1&quot;&gt;# parse hml document and make ElementTree
&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;doc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;convertEquationSample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;doc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;  &lt;span class=&quot;c1&quot;&gt;# find equations from ElementTree and convert them to latex string
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;extract2HtmlStrSample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;doc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;  &lt;span class=&quot;c1&quot;&gt;# convert ElementTree to html document with MathJax.
&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;codecs&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;f&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;codecs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;open&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;test.html&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;w&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;utf8&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;test.html&lt;/em&gt;이 생성되면 성공이다.&lt;/p&gt;

&lt;p&gt;## 주의점&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;윈도우에서 안 된다. (코덱 인코딩 문제… 아직 해결 無)&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;not supported tag&lt;/code&gt; error가 있다.&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;not supported tag: SECDEF
not supported tag: COLDEF
not supported tag: TABLE
not supported tag: PICTURE
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;​&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;
</description>
        <pubDate>Sun, 03 Dec 2017 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2017/12/03/hwp-%EC%88%98%EC%8B%9D%EC%9D%84-LaTex%EB%A1%9C(hml-equation-parser)/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2017/12/03/hwp-%EC%88%98%EC%8B%9D%EC%9D%84-LaTex%EB%A1%9C(hml-equation-parser)/</guid>
        
        <category>rails</category>
        
        
      </item>
    
      <item>
        <title>윈도우 서버 + ASP + Node.js </title>
        <description>&lt;h1 id=&quot;윈도우-서버--asp--nodejs&quot;&gt;윈도우 서버 + ASP + Node.js&lt;/h1&gt;

&lt;p&gt;이번에 내가 수행해야 할 일은&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;기존의 ASP가 디플로이 되어있는 ‘‘windows server 2012 r2”서버에 내가 만든 node.js 프로젝트를 포팅.
이 node.js 프로젝트는 리눅스 버전의 한글 형태소 분석기인 (mecab)이 설치 되어 있음.(윈도우 버전으로 변환해야함)
추가적으로 watson API도 연동해야함(bluemix 연동)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;그래서 개발 to-do-list를 정리해보니깐&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;윈도우 서버에 node.js 적용 (IIS node.js 적용)&lt;/li&gt;
  &lt;li&gt;mecab-ko 윈도우 버전 적용&lt;/li&gt;
  &lt;li&gt;watson api 적용&lt;/li&gt;
  &lt;li&gt;ASP 적용&lt;/li&gt;
  &lt;li&gt;기존 서버에 적용&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;이 중에서 첫 번째에 대한 내용이다.&lt;/p&gt;

&lt;h3 id=&quot;1-windows-server-2012-r2-한글-적용&quot;&gt;1. windows server 2012 R2 한글 적용&lt;/h3&gt;

&lt;p&gt;일단 기존 윈도우 서버는 한글이어서 내 연습용 서버도 한글 메뉴로 변환해봤다.
이 작업은 &lt;a href=&quot;https://developer.ibm.com/kr/cloud/softlayer-bluemix-infra/2016/05/20/%EC%9C%88%EB%8F%84%EC%9A%B0%EC%A6%88%EC%84%9C%EB%B2%84-2012-r2-%ED%95%9C%EA%B8%80%EB%A9%94%EB%89%B4-%EC%A0%81%EC%9A%A9%EB%B0%A9%EB%B2%95/&quot;&gt;링크&lt;/a&gt;로 대체한다.&lt;/p&gt;

&lt;h3 id=&quot;2-iisinternet-information-sevices&quot;&gt;2. IIS(Internet Information Sevices)&lt;/h3&gt;

&lt;p&gt;처음 써봤는데 윈도우 서버에서 사용하는 웹서버라 한다.(나중에 공부해야겠다.)
이 것을 설치해야하는데 방법은 간단하다.
이 작업도 &lt;a href=&quot;http://blog.publisher.name/47&quot;&gt;링크&lt;/a&gt;로 대체한다.&lt;/p&gt;

&lt;h3 id=&quot;3-iisnode&quot;&gt;3. iisnode&lt;/h3&gt;

&lt;p&gt;일단 윈도우 서버에 node.js 적용 방법은 iisnode를 설치해서 하는 방법이 있었다.(다른 방법이 있긴 하지만 아파치를 사용.. 상대적으로 어렵다고 함)
여기서 뻘짓을 많이 했는데 가장 적합한 &lt;a href=&quot;https://www.simplymigrate.com/2017/04/11/internet-information-server-iis-node-js-in-producton-iisnode/&quot;&gt;링크&lt;/a&gt;는 이 것이었다. 
뻘짓 리스트 중 하나는 &lt;strong&gt;setupsamples.bat&lt;/strong&gt; 이라는 배치 파일을 통해 기존 예제를 적용하는데 저게 없는 iisnode 설치 버전이 많았다.
그리고 굳이 8.x 버전을 찾지 않아도 된다. 7.x버전도 잘 작동된다.&lt;/p&gt;

&lt;h3 id=&quot;4-iisnode-오류&quot;&gt;4. iisnode 오류&lt;/h3&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault=&quot;Deny&quot;), or set explicitly by a location tag with overrideMode=&quot;Deny&quot; or the legacy allowOverride=&quot;false&quot;.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;사실 글을 쓰게 된 이유인데 이런 오류가 났다. 
한참을 찾아봤는데 권한 문제였다.
한글 버전으로 IIS/ root(이름이 root는 아니다. 가장 최상단 폴더) / &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;기능 위임(Feature Delegation)&lt;/code&gt;으로 들어가서 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;처리기 매핑(handler mapping)&lt;/code&gt;을 입력/출력으로 변환한다.
몇몇개를 제외하고 작동한다.(express모듈은 노 작동…)
&lt;a href=&quot;https://github.com/tjanczuk/iisnode/issues/52&quot;&gt;해결링크&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Sun, 03 Dec 2017 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2017/12/03/%EC%9C%88%EB%8F%84%EC%9A%B0-%EC%84%9C%EB%B2%84-+-ASP-+-Node.js/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2017/12/03/%EC%9C%88%EB%8F%84%EC%9A%B0-%EC%84%9C%EB%B2%84-+-ASP-+-Node.js/</guid>
        
        <category>rails</category>
        
        
      </item>
    
      <item>
        <title>rails &amp; windwos on ubuntu errors</title>
        <description>&lt;h1 id=&quot;rails--windows-on-ubuntu-errors&quot;&gt;rails &amp;amp; windows on ubuntu errors&lt;/h1&gt;

&lt;p&gt;설치 과정의 힘듦은… 다른 글에서 다시 작업하겠습니다.
여기는 &lt;strong&gt;windows on ubuntu&lt;/strong&gt;를 사용하면서 겪었던 뻘짓을 정리해보겠습니다.&lt;/p&gt;

&lt;h3 id=&quot;mysql-error&quot;&gt;mysql error&lt;/h3&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Mysql2::Error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;Can&lt;span class=&quot;s1&quot;&gt;'t connect to local MySQL server through socket '&lt;/span&gt;/var/run/mysqld/mysqld.sock&lt;span class=&quot;s1&quot;&gt;' (2)):
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;이런 에러가 수도 없이 많이 납니다.&lt;/p&gt;

&lt;p&gt;해결 방법은 여러가지가 있는데 일단 윈도우에 있는 mysql을 종료해줘야 합니다. 
&lt;del&gt;저는 귀찮아서 아예 삭제했습니다.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;그 이후에도 컴퓨터를 종료했다가 다시 작업을 하려고 하면 오류가 다시 납니다. 
이 경우는 mysql을 start 해줘야 합니다.&lt;/p&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;service mysql start
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

</description>
        <pubDate>Sun, 03 Dec 2017 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2017/12/03/rails-&-windows-on-ubuntu-errors/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2017/12/03/rails-&-windows-on-ubuntu-errors/</guid>
        
        <category>rails</category>
        
        
      </item>
    
      <item>
        <title>Js (import, require)</title>
        <description>&lt;h1 id=&quot;js-import-require&quot;&gt;JS (import, require)&lt;/h1&gt;

&lt;div class=&quot;language-javascript highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kd&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;React&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;react&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;React&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;react&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;둘이 똑같다!&lt;/p&gt;
</description>
        <pubDate>Thu, 05 Oct 2017 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2017/10/05/JS-(import,-require)/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2017/10/05/JS-(import,-require)/</guid>
        
        
      </item>
    
      <item>
        <title>원노의 초보 mongoose 1</title>
        <description>&lt;h1 id=&quot;원노의-초보-mongoose-1&quot;&gt;원노의 초보 Mongoose 1&lt;/h1&gt;

&lt;p&gt;이 글은 다시 쓰여질 겁니다.&lt;/p&gt;

&lt;hr /&gt;

&lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;mongoose
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;node.js 문서를 작성하겠습니다.&lt;/p&gt;

&lt;div class=&quot;language-javascript highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;[...]&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//모듈 불러오기&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;mongoose&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;require&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;mongoose&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//몽구스 모듈에 몽고 디비 서버 연결&lt;/span&gt;
&lt;span class=&quot;nx&quot;&gt;mongoose&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;connect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;mongodb://localhost/test_db&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//커넥션 객체 생성&lt;/span&gt;
&lt;span class=&quot;kd&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;db&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;mongoose&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;connection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;//db bind 하기&lt;/span&gt;
&lt;span class=&quot;nx&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nx&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;once&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;open&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;connected to mongodb server&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)});&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;[...]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;localhost/뒤의 &lt;strong&gt;test_db&lt;/strong&gt;는 데이터베이스 명입니다. MongoDB는 데이터베이스를 따로 생성하지 않았어도 자동으로 db를 생성해줍니다.&lt;/p&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;() =&amp;gt; {}&lt;/code&gt;은 &lt;strong&gt;화살표 함수 표현(arrow function expression)&lt;/strong&gt; 익명으로 만들어지는 함수입니다. 이 함수 표현은 메소드 함수가 아닌 곳에 가장 적당합니다. &lt;a href=&quot;https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Functions/%EC%95%A0%EB%A1%9C%EC%9A%B0_%ED%8E%91%EC%85%98&quot;&gt;참고&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Tue, 03 Oct 2017 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2017/10/03/%EC%9B%90%EB%85%B8%EC%9D%98-%EC%B4%88%EB%B3%B4-Mongoose-1/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2017/10/03/%EC%9B%90%EB%85%B8%EC%9D%98-%EC%B4%88%EB%B3%B4-Mongoose-1/</guid>
        
        
      </item>
    
      <item>
        <title>Node.js 패키지 관리</title>
        <description>&lt;h1 id=&quot;nodejs-모듈-관리&quot;&gt;node.js 모듈 관리&lt;/h1&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;package.json 만들기&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm init
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;package.json에 모듈 추가하기&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;body-parser &lt;span class=&quot;nt&quot;&gt;--save&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--save&lt;/code&gt; 붙이기
&lt;del&gt;상위 버전 node는 –save를 안 붙여도 된다고 합니다.&lt;/del&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;모듈 제거하기&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm uninstall express
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;모듈 리스트 확인하기&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm list
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;package.json 최신버전으로 자동 작성하기&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm update &lt;span class=&quot;nt&quot;&gt;--save&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;package.json에 종속된 모듈설치하기&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;package.json 최신버전으로 자동 작성하기&lt;/p&gt;

    &lt;div class=&quot;language-shell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm update &lt;span class=&quot;nt&quot;&gt;--save&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h4 id=&quot;nodejs-모듈-찾기&quot;&gt;node.js 모듈 찾기&lt;/h4&gt;

&lt;p&gt;&lt;a href=&quot;**https://npmjs.org**&quot;&gt;공식사이트&lt;/a&gt;
&lt;a href=&quot;http://blago.dachev.com/modules&quot;&gt;비공식사이트1&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Sat, 16 Sep 2017 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2017/09/16/node.js-%ED%8C%A8%ED%82%A4%EC%A7%80-%EA%B4%80%EB%A6%AC/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2017/09/16/node.js-%ED%8C%A8%ED%82%A4%EC%A7%80-%EA%B4%80%EB%A6%AC/</guid>
        
        
      </item>
    
      <item>
        <title>Css Dim 처리</title>
        <description>&lt;h1 id=&quot;css-dim-처리&quot;&gt;css dim 처리&lt;/h1&gt;

&lt;p&gt;내가 하려고 한 것은 배경사진과 글자가 있을 때 배경 사진을 dim 처리하고 싶었다.
일반적으로 사용하는 방법은 opacity를 추가해서 투명도를 주는 방법인데..
음 검정색을 위에 깔고 딤처리를 하고 싶었기 때문에 다른 방법을 생각해보았다.&lt;/p&gt;

&lt;h4 id=&quot;before-속성을-사용해서-dim-처리&quot;&gt;before 속성을 사용해서 dim 처리&lt;/h4&gt;

&lt;p&gt;css 속성에서는 가상 요소로 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:before&lt;/code&gt;와 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;:after&lt;/code&gt;가 있다.
두 선택자는 요소에 내용을 생성하는 역할을 하는데 특정 요소의 before나 after에 가상의 요소를 추가할 수 있다.&lt;/p&gt;

&lt;p&gt;그래서 배경화면이 있는 부분에 …. (생략)&lt;/p&gt;
</description>
        <pubDate>Tue, 29 Aug 2017 00:00:00 +0900</pubDate>
        <link>https://cowx2ater.github.io/2017/08/29/css-dim-%EC%B2%98%EB%A6%AC/</link>
        <guid isPermaLink="true">https://cowx2ater.github.io/2017/08/29/css-dim-%EC%B2%98%EB%A6%AC/</guid>
        
        
      </item>
    
  </channel>
</rss>
