<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nicho</title>
    <description>The latest articles on DEV Community by Nicho (@across_the_grid).</description>
    <link>https://dev.to/across_the_grid</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F18097%2Ff880b37c-44e0-4170-8d75-6170e90e9555.JPG</url>
      <title>DEV Community: Nicho</title>
      <link>https://dev.to/across_the_grid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/across_the_grid"/>
    <language>en</language>
    <item>
      <title>Do you apply testing in your side projects?</title>
      <dc:creator>Nicho</dc:creator>
      <pubDate>Wed, 20 Dec 2017 18:09:53 +0000</pubDate>
      <link>https://dev.to/across_the_grid/do-you-apply-testing-in-your-side-projects-5gj4</link>
      <guid>https://dev.to/across_the_grid/do-you-apply-testing-in-your-side-projects-5gj4</guid>
      <description>&lt;p&gt;Hi everyone 👋&lt;br&gt;
Yesterday I started to learn more about &lt;a href="https://en.wikipedia.org/wiki/Test-driven_development"&gt;TTD&lt;/a&gt; (test-driven-development) in JS. I checked out &lt;a href="https://mochajs.org"&gt;Mocha&lt;/a&gt;, &lt;a href="https://www.npmjs.com/package/supertest"&gt;supertest&lt;/a&gt; &amp;amp; &lt;a href="https://www.npmjs.com/package/assertthat"&gt;assertthat&lt;/a&gt; and everything was very easy set up. I wrote some simple test cases (unit + integration) in Node.js, so overall it looked like a very nice strategy to increase the quality of the product/code (overtime). But then I asked myself, why I have never done this before? What kept me back? I always thought, that if you are the only developer of your side project it wouldn't make sense to write those tests because you would lose a lot of time instead of just trying out your idea.&lt;br&gt;
That's why I would like to ask you: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Do you apply testing in your side projects?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Does it make sense to you?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Have you benefit from that, what is your experience?&lt;/strong&gt; &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do go more for unit tests or more for integration tests?&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Do you test your REST API in this way or just hit the API by Postman as I do? 😅&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Maybe you have some advice for me, let's discuss!&lt;/p&gt;

&lt;p&gt;Already, thanks in advance!&lt;br&gt;
Best, Nicho ✌️&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>testing</category>
      <category>tdd</category>
    </item>
    <item>
      <title>Be a good host and share your WiFi</title>
      <dc:creator>Nicho</dc:creator>
      <pubDate>Fri, 15 Dec 2017 15:43:52 +0000</pubDate>
      <link>https://dev.to/across_the_grid/be-a-good-host-and-share-your-wifi-3mn</link>
      <guid>https://dev.to/across_the_grid/be-a-good-host-and-share-your-wifi-3mn</guid>
      <description>&lt;p&gt;My friends and I always enjoy watching YT videos, when we hang out, but the fun is over when you can not find that special video you want to show, because your data volume has reached its limit or you have poor service 😩&lt;br&gt;
So, why not sharing your WiFi with your friends? Well, people act very weirdly when you ask them for the password. How often did you get the answer: “I’m sorry, I can’t remember! There is a sticker below the router!” and then you try to find the black box in the most unreachable spot in your friends flat, surrounded by millions of cables and some time a mountain of dust. When you finally found it  — yay! 👏 — there is this giant number (20 characters 😱) where you always make a typo! 🆘&lt;br&gt;
I know I was a bit dramatic here, but to avoid these kinds of situations, here is a simple way to share your WiFi with your friends using QR codes.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Setup a Guest WiFi 📱🤝🗼 (highly recommended)
&lt;/h3&gt;

&lt;p&gt;You don’t have to set up a special Guest WiFi to share your password, but I highly recommend it to protect your own home devices from unexpected accesses. This might not be the case with your friends, but if you want to share your WiFi with your customers, because you run a restaurant, this is worth it.&lt;br&gt;
If you have a FritzBox like me, open your browser and go to  &lt;a href="http://fritz.box" rel="noopener noreferrer"&gt;http://fritz.box&lt;/a&gt;. In case you don’t see anything, try out &lt;a href="http://192.168.178.1" rel="noopener noreferrer"&gt;http://192.168.178.1&lt;/a&gt; (The IP-address of your router may vary from the one above, so please checkout the manual of your manufacturer or just ask Google).&lt;br&gt;
When you are logged in, go to Wireless &amp;gt; Guest Access and turn it on. Select WPA/WPA2 as encryption strategy and give your WiFi a name (SSID) and a password. That’s it!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1600%2F1%2AmVD2S6M-4JWFk9xxfNXVMg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1600%2F1%2AmVD2S6M-4JWFk9xxfNXVMg.png" alt="img"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also restrict the connected clients to internet and mail access and close all connections after 30 minutes, 1 hour or 1 day, which prevents people from constantly using your WiFi network. This setting is more for customers, so it is also possible to show also a Terms of Use before using the WiFi and restrict the communication between devices for more security.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Generate a QR code 🖨
&lt;/h3&gt;

&lt;p&gt;This is the most important step! It’s 2017 and although QR codes are already out there for a while, this year Apple finally integrated a QR reader inside the camera app, which makes it accessible immediately without any other app. I’m very sure this handy feature will come to Android next year, but QR code scanning works on every today’s platform — just install an app from an app store (scroll down to section 3 to see it in action).&lt;br&gt;
For now, go to a free online generator, for example: &lt;a href="https://www.the-qrcode-generator.com" rel="noopener noreferrer"&gt;https://www.the-qrcode-generator.com&lt;/a&gt; and use the following text:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WIFI:T:WPA;S:Valar Morghulis;P:Valar Dohaeris;H:false;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;T&lt;/code&gt; = Authentication type, this can be &lt;code&gt;WPA&lt;/code&gt;, &lt;code&gt;WEP&lt;/code&gt; or &lt;code&gt;nopass&lt;/code&gt; (required)&lt;br&gt;
&lt;code&gt;S&lt;/code&gt; = Your SSID (required)&lt;br&gt;
&lt;code&gt;P&lt;/code&gt; = Your password (required, but optional, if the authentication type is &lt;code&gt;nopass&lt;/code&gt;)&lt;br&gt;
&lt;code&gt;H&lt;/code&gt; = &lt;code&gt;false&lt;/code&gt; (optional and &lt;code&gt;true&lt;/code&gt;, if your SSID is hidden)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1600%2F1%2ASwuLNSZkg03_pNAN4a20jw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1600%2F1%2ASwuLNSZkg03_pNAN4a20jw.png" alt="img"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Save it as a &lt;code&gt;.png&lt;/code&gt; or &lt;code&gt;.svg&lt;/code&gt; file and print it out! For a better printing result,  I set a custom size 1000px x 1000px (you can find this in the options section in the upper right corner). Create a new Word/Pages document and insert your QR code. I also added the plain text version of the SSID and password in case of people having devices without the ability of QR code scanning, like notebooks. I bought a nice frame (15cm x 15cm) on Amazon (&lt;a href="http://goo.gl/X4j8gq" rel="noopener noreferrer"&gt;http://goo.gl/X4j8gq&lt;/a&gt;) for a few bugs, so that my friends can easily recognise it as soon as they enter my home. Let’s see it in action! 🎬&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Login 🖼 📸 📶
&lt;/h3&gt;

&lt;p&gt;In iOS11 it’s so simple: Open the camera app, scan the QR code, done! (the following GIF might take a while to load)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1600%2F1%2AMtsTjNGIk_gPULiC0apqRg.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1600%2F1%2AMtsTjNGIk_gPULiC0apqRg.gif" alt="img"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Android, it‘s easy too, but (currently) you need an app for that. There are tons of free QR code readers in Google Play Store, just download one (for example: &lt;a href="https://play.google.com/store/apps/details?id=me.scan.android.client" rel="noopener noreferrer"&gt;QR Code Reader&lt;/a&gt;) and scan the QR code, done!&lt;/p&gt;




&lt;h4&gt;
  
  
  UPDATE 2018–01–06
&lt;/h4&gt;

&lt;p&gt;One of my friends discovered on New Year's Eve that his phone (Motorola - Moto G4 Plus with Android 7) is able to read QR-codes with the pre-installed &lt;a href="https://play.google.com/store/apps/details?id=com.motorola.camera" rel="noopener noreferrer"&gt;Motorola Camera app&lt;/a&gt;. As this app was built from Motorola and not Google, there might be a chance that QR-code reading is also working on your phone with an independent app. Please let me know in the comments, if you found out, that your phone has own support in the camera app, then I add it to this list:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt; Support&lt;/th&gt;
&lt;th&gt; Manufacturer&lt;/th&gt;
&lt;th&gt; Device&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt; &lt;strong&gt;YES&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt; Motorola&lt;/td&gt;
&lt;td&gt;Moto G4 Plus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt; NO&lt;/td&gt;
&lt;td&gt; Samsung&lt;/td&gt;
&lt;td&gt;Galaxy S3 mini&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;h4&gt;
  
  
  UPDATE 2017–12–16
&lt;/h4&gt;

&lt;p&gt;On Twitter “One Two” has pointed out that there is another way for iOS11 to share your WiFi passwords with friends very easily, so I would like to mention it here as well. I haven’t been aware of this, here is how it works:&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/6C3mBPDrHcY"&gt;
&lt;/iframe&gt;
&lt;br&gt;
To quickly summarise the video, you go to &lt;em&gt;Settings&lt;/em&gt; &amp;gt; &lt;em&gt;WiFi&lt;/em&gt; and tap on the network you want to connect with. Hold your iPhone and the iPhone of your friend close together and confirm when you are asked to share the password. After that, it will be transferred wirelessly and secretly, so it’s very simple to use!&lt;/p&gt;

&lt;p&gt;However, in comparison to QR codes, I see some disadvantages:&lt;br&gt;
One thing is, that your friends don’t know you are willing to share your WiFi - so some of them might be too shy to ask for - and they also have to know your SSID, which brings me to the second disadvantage, you will be involved in this process. My idea was, that as soon as my friends enter my home they recognize the little frame and can connect by themselves, while I can be in the kitchen and grab them a beer 🙃 The third disadvantage I see with it, you are sharing the default WiFi of your phone, so you won’t make use of a Guest WiFi. This might not be so important, because you are sharing it with friends, but should but considered.&lt;br&gt;
And finally, what about Android? 😢&lt;br&gt;
On the other side, if all your friends have iPhones, iOS11 WiFi sharing is really useful, please check out the video above.&lt;/p&gt;




&lt;p&gt;I hope you find this guide useful, I wrote it mainly for my friends and family, who are not so familiar with tech, but if you already know this, I hope it motivated you to set it up 😉 Have fun! ✌️&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;You can find more information about QR codes here: &lt;a href="http://www.qrcode.com/en/" rel="noopener noreferrer"&gt;http://www.qrcode.com/en/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;QR codes can also be used for sharing URLs, contact details, phone numbers, email addresses, coordinates, events and so on. Here are some examples: &lt;a href="http://qrcode.meetheed.com/qrcode_examples.php?s=s" rel="noopener noreferrer"&gt;http://qrcode.meetheed.com/qrcode_examples.php?s=s&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Most online generators are free and let you design QR codes to your requirements, for example: &lt;a href="https://www.qrcode-monkey.com" rel="noopener noreferrer"&gt;https://www.qrcode-monkey.com&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Be aware of potential QR code risks: &lt;a href="http://resources.infosecinstitute.com/security-attacks-via-malicious-qr-codes/" rel="noopener noreferrer"&gt;http://resources.infosecinstitute.com/security-attacks-via-malicious-qr-codes/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>tips</category>
      <category>lifehack</category>
      <category>wifi</category>
      <category>qrcodes</category>
    </item>
  </channel>
</rss>
