These are chat archives for FreeCodeCamp/Help

17th
Feb 2019
filthywebdeveloper
@filthywebdeveloper
Feb 17 07:42
Hi I have a question about DOM manipulation. When we add an eventlistener,
is target a property of e or just another object?
It seems like a property but then it has its own property
Nazar
@IsaakNazar
Feb 17 09:48
@kevcomedia nevermind. Solved :) thx btw
Mohammed Boudad
@matrixersp
Feb 17 10:03
I'm trying to connect to Atlas cluster using the SRV address (MongoDB 3.6+)
mongodb+srv://<USER>:<PASSWORD>@test-vgq7l.mongodb.net/test?retryWrites=true
I get this error:
Error: queryTxt ETIMEOUT test-vgq7l.mongodb.net
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:213:19)
Mohammed Boudad
@matrixersp
Feb 17 11:12
However it works with the standard connection string
SAIDI YASSINE
@Nero00
Feb 17 13:40
heelo every one
any one here familiar with laravel ?
Aditya
@ezioda004
Feb 17 18:31
@filthywebdeveloper target is the property of the event object and itself is an object so it can have properties of itself.
Ruben Dario
@rubendmatos1985
Feb 17 18:32
Hello i am learning php and i like a lot functional programming. I made this little example to practice and i would like to share with you to know what you think. I am learning by my self and a lot of books but sometimes it's good to know some advices. here is the code
<?php

// COMPOSER
$compose = function(){
  $functionsArray = func_get_args();
   return function($input) use($functionsArray){
     return array_reduce(
      $functionsArray,
      function($result, $currentFunc){
        return call_user_func($currentFunc, $result);
       },
      $input 
     ); 
    };
  };

// FORMAT TEXT IN UTF-8
$UtfFormat = function($obj){
  return array_map(function($item){
    return [ 
      'id' =>  htmlspecialchars($item['id'], ENT_QUOTES, 'UTF-8'), 
      'text' => htmlspecialchars($item['joketext'], ENT_QUOTES, 'UTF-8')
     ];;
  },$obj);
};


// TEMPLATE TO DRAW IN THE DOM
$makeTemplate = function($var){
  return array_map(
    function($var){
      return('
        <blockquote>
        <p>'. $var['text'].
        '
          <form action="deletejoke.php" method="post">
            <input type="hidden" name="id"  value="' . $var['id'] . '">
            <input type="submit" value="delete">  
          </form>
        </p>
        </blockquote>');
        },
        $var
      );
  };


// SIDE EFFECT
$printInDom = function($arr){
  return array_map(
    function($item){
      return print $item;
    }
    ,$arr);
};

$compose(
  $UtfFormat,
  $makeTemplate,
  $printInDom 
)($jokes);
Xarri Jorge
@xarrijorge
Feb 17 19:22
Hey folks, what's good?
Niraj Nandish
@Nirajn2311
Feb 17 19:49
@diomed hows the new profile pic 🦊
Lia-Sue-Kim
@Lia-Sue-Kim
Feb 17 19:55
Is there a way to support FCC not with my bank card but something like via google play maybe
by using money from sim card
I want to support but most of the support way they have either i don't get it or not supported in my country
for example there is bitcoin or something i don't know what it is. Paypall isn't supported in Turkey anymore
May Kittens Devour Your Soul
@diomed
Feb 17 21:27
@Nirajn2311 very foxy!