<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Weave Bytes on Medium]]></title>
        <description><![CDATA[Stories by Weave Bytes on Medium]]></description>
        <link>https://medium.com/@weavebytes?source=rss-115587eff8e8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UX02y--2305yHumZ1hFEpQ.png</url>
            <title>Stories by Weave Bytes on Medium</title>
            <link>https://medium.com/@weavebytes?source=rss-115587eff8e8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 02:13:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@weavebytes/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cool features of ES6 in Javascript]]></title>
            <link>https://medium.com/@weavebytes/cool-features-of-es6-in-javascript-d07681515dba?source=rss-115587eff8e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/d07681515dba</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Weave Bytes]]></dc:creator>
            <pubDate>Wed, 10 Jan 2018 12:04:34 GMT</pubDate>
            <atom:updated>2018-01-10T12:04:34.099Z</atom:updated>
            <content:encoded><![CDATA[<p>ECMAScript (or ES) is a trademarked scripting-language specification standardized by Ecma International in ECMA-262 and ISO/IEC 16262. It was created to standardize JavaScript.</p><p><strong>Amazing Features<br></strong>1. <strong>Promises</strong>, let keyword, iterators</p><p>2. ES6 allows us to <strong>define default values</strong> for function parameters!</p><p>3.<strong> Destructuring assignment</strong><br>var { name, email } = user;<br>//is equivalent to:<br>var name = user.name;<br>var email = user.email;<br>let { address: { home: { street } } = user;<br>//is equivalent to:<br>let street = user.address.home.street;</p><p>4. <strong>Classes</strong><br>class Student {<br> constructor(name, age) { <br> }<br> someMethod() {<br> }<br>}</p><blockquote>5. <strong>Template literals</strong><br>var name = “Navi”;<br>var text = `Hello ${name}`;<br>console.log(text);<br>6. Multi-line strings work as follows:<br>var text = `Foo<br>bar<br>baz`;</blockquote><blockquote><strong>7. Arrow functions<br></strong>//arrow function with no parameters<br>var a1 = () =&gt; 1;<br>//arrow with multiple params requires parentheses<br>var a4 = (x, y) =&gt; 1;<br>//arrow with body has no implicit return<br>var a5 = x =&gt; { return 1; };<br>//arrow with one parameter can be defined without parentheses<br>var a2 = x =&gt; 1;<br>var a3 = (x) =&gt; 1;</blockquote><blockquote><strong>8. ES6 modules<br></strong>export/import modules<br>export const magicNumber = 42;<br>import { magicNumber } from ‘./my-module’;</blockquote><blockquote><strong>9. Spread Operator<br></strong>Append list<br>var todo = [<br> { text: “go to gym”,<br> done: false<br> },<br>];<br>var todo1 = [<br> …todo,<br> { text: “go to shopping”,<br> done: false<br> }<br>];</blockquote><blockquote><strong>10 Multiline strings<br></strong>var multiline_string = ‘Hi there. \ <br>I am a multi-line string. \ <br>Cheers’</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d07681515dba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mongodb quick reference]]></title>
            <link>https://medium.com/@weavebytes/mongodb-quick-reference-883d1d01db47?source=rss-115587eff8e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/883d1d01db47</guid>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Weave Bytes]]></dc:creator>
            <pubDate>Fri, 30 Jun 2017 08:48:42 GMT</pubDate>
            <atom:updated>2017-06-30T08:48:42.173Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Mongodb quick reference</strong></p><p>mongo -u admin -p 123 — authenticationDatabase admin</p><p><strong>Create DB</strong></p><p>&gt; use nskdb</p><p>To create db use need to insert data in atleast one document<br>db.movie.insert({“name”:”tutorials point”})</p><p>NOTE:<br>In MongoDB default database is test. If you didn’t create any database, <br>then collections will be stored in test database.</p><p><strong>Drop DB</strong></p><p>select db with use command</p><p>&gt; use nskdb<br>&gt; db.dropDatabase()</p><p><strong>Create Collection</strong></p><p>syntax is:-<br>db.createCollection(name, options)</p><p>options can be :-<br> — capped, autoIndexId, size, max</p><p>&gt; db.createCollection(“mycollection”)<br>&gt; db.createCollection(“mycol”, { capped : true, autoIndexId : true, size : <br> 6142800, max : 10000 } )</p><p>&gt; db.createCollection(“user”, { autoIndexId : true } )</p><p>&gt; show collections</p><p><strong>Drop</strong> <strong>Collection</strong></p><p>&gt; db.mycollection.drop()</p><p><em>The insert() Method</em></p><p>db.mycol.insert({<br> title: ‘MongoDB Overview’, <br> likes: 100<br>})</p><p><strong>BULK WRITE</strong><br><br>To insert multiple documents in a single query, you can pass an array of documents in insert() command.</p><p>db.mycol.insert([{<br> title: ‘Python Overview’, <br> likes: 200<br>},<br>{<br> title: ‘Nodejs Overview’, <br> likes: 70<br>},</p><p>])</p><p><strong>The find() Method</strong></p><p>db.COLLECTION_NAME.find()</p><p>&gt; db.mycol.find()<br>&gt; db.mycol.find().pretty()<br>&gt; db.mycol.find({likes: 100}).pretty()</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=883d1d01db47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Differences in Swift 2.x and 3.x]]></title>
            <link>https://medium.com/@weavebytes/differences-in-swift-2-x-and-3-x-75e61540ebc3?source=rss-115587eff8e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/75e61540ebc3</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Weave Bytes]]></dc:creator>
            <pubDate>Tue, 28 Feb 2017 14:57:06 GMT</pubDate>
            <atom:updated>2017-02-28T14:57:06.963Z</atom:updated>
            <content:encoded><![CDATA[<p>Swift 2.x includes some features such as improved extensions and availability check protocols. Swift 3.x is the latest iteration of Apple’s programming language. As far as the language is concerned there are not many changes and they mostly affect more advanced features of Swift. However, the Cocoa Touch and Cocoa APIs have all changed dramatically. All for the better and are much simpler to understand. But any code written for Swift 2 will need to be migrated to Swift 3 and that probably affects every function. There is an automatic migrator included in Xcode 8.</p><p>1. API Design Guidelines:</p><p>The design of commonly-used libraries creates a major impact on the overall feel of programming language. To elevate the process of construction of Swift libraries, Swift 3 focuses on defining a set of API design guidelines and to apply those design guidelines consistently.</p><p>Major pieces that are used to define API Design Guidelines</p><p>a. Swift API Design Guidelines</p><p>b. Swift Standard Library</p><p>c. Imported Objective-C APIs</p><p>d. Swift Guidelines Checking</p><p>e. Swift 2 to Swift 3 Migrator</p><p>2. Omit Needless Words:</p><p>In this method with names that have self- contained words are now been removed.</p><p>For example, Swift 2.x has the coding like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*HSE12dnHvtcpPdcQ5e67mw.png" /></figure><p>And, Here is that same Code in Swift 3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*mV9jayYzgWF-_0aku_5W-w.png" /></figure><p>Swift 3 has made significantly shorter. This change particularly has a lot of effect on strings, which had repetition all over the place.</p><p>3. Modern GCD and core graphics :</p><p>Grand Central Dispatch is used for many threading tasks such as long calculations or to communicate with a server. In Swift 2.x the dispatch library was written in the C programming language and has always used a C style API.</p><p>Now in Swift 3.x API has now been re imagined in native Swift :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*JcmFZTj1seqIDVV1eMZAeg.png" /></figure><p>4. Capitalization in Enumeration Classes :</p><p>UpperCamelCase has been replaced to LowerCamelCase for enumeration classes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*dY77E1wlZNcaAleSP9EfbA.png" /></figure><p>5. Function Types</p><p>When you use a function type as a parameter itself, you might write something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/786/1*m4oWJFFwAjDQuDZdc1dC3w.png" /></figure><p>With Swift 3 the correct way to define this function is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*ZtFSE-LBOyi3j2y_4nkoyw.png" /></figure><p>6. Improvements to Tooling:</p><p>Swift 3 fixes bugs in compiler and IDE. Updates also enable it to improve the precision of error and warning messages. And the most amazing thing is, Swift is getting faster with each release in how it runs and compiles:</p><p>a. By improving string hashing there was a 3x speedup in dictionaries of strings</p><p>b. By moving objects from the heap to the stack there was a 24x speedup (in some cases)</p><p>c. The compiler now caches multiple files at once (when doing whole module optimization)</p><p>d. Code size optimization has reduced the compiled size of Swift code.</p><p>7. Swift importing of C functions:</p><p>Swift maintains compatibility with a number of C language types and features as a part of its interoperability with Objective-C. There are also ways available to work with common C constructs and patterns with Swift, in case your code requires it.</p><p>Same like, Swift 3 bring forth attributes for C functions which enable library authors to specify new and beautiful ways their code should be imported into Swift.</p><p>Here’s an example in Swift 2.x:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*gozh2ZE_eC-_3uLwIMHMrA.png" /></figure><p>Now in Swift 3 the CGContext can be treated as an object that you can call methods on rather than repeating CGContext again and again :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*CpgUKi9G7XpoE1f5-iUqNA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75e61540ebc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fundamental git commands]]></title>
            <link>https://medium.com/@weavebytes/fundamental-git-commands-33781243889d?source=rss-115587eff8e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/33781243889d</guid>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Weave Bytes]]></dc:creator>
            <pubDate>Sun, 19 Feb 2017 14:50:05 GMT</pubDate>
            <atom:updated>2017-02-19T14:50:05.911Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Initial Setup</strong><br>git config — global user.name “John Doe”<br>git config — global user.email “johndoeabc123@gmail.com”<br>git config — list</p><p><strong>1. Undo Last commit</strong><br>$ git reset — soft HEAD~1</p><p><strong>2. Delete a local branch</strong><br>$ git branch -d the_local_branch</p><p><strong>3. Delete without merging</strong><br>$ git branch -D the_local_branch</p><p><strong>4. Checking logs</strong><br>$ git log — oneline<br>$ git log some-file.cpp<br>$ git log — oneline some-file.cpp<br>$ git log — author “Navjot Singh”<br>$ git log — since=12–18–1979<br> (mm-dd-yyyy)<br>$ git log — author “Navjot Singh” — since=12–18–1979<br>$ git log — since=12–18–1979 — until=12–30–2016</p><p><strong>5. Line changed/added/deleted between 2 commits</strong><br>$ git diff — stat 36baf22 6edb550</p><p><strong>6. Diff between two commits</strong><br>$ git diff 36baf22 6edb550</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33781243889d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[20 Linux commands to manage your raspberry pi]]></title>
            <link>https://medium.com/@weavebytes/20-linux-commands-to-manage-your-raspberry-pi-cae4681677e8?source=rss-115587eff8e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cae4681677e8</guid>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[linux-commands]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Weave Bytes]]></dc:creator>
            <pubDate>Sun, 19 Feb 2017 14:43:33 GMT</pubDate>
            <atom:updated>2017-02-19T14:43:33.807Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*Whp3jBCnKlkLDbgD1gT1BA.png" /></figure><p>1. Configuration settings<br>raspi-config</p><p>2. Staring UI/X11<br>startx</p><p>3. Know your CPU<br>cat /proc/cpuinfo</p><p>4. Show Memory Details <br>cat /proc/meminfo</p><p>5. Show Partitions<br>cat /proc/partitions</p><p>6. Check Pi Version <br>cat /proc/version</p><p>7. Show USB devices info:<br>lsusb</p><p>8. Shutdown device immediately:<br>sudo shutdown -r now</p><p>(you can also issue this command from ssh)</p><p>9. Search text in files<br>grep</p><p>10. Search files<br>find</p><p>11. Check system logs<br>dmesg</p><p>12. Check process, cpu usage etc.<br>top, ps</p><p>13. Check disks, usages etc.<br>df -h</p><p>14. Text editor for geeks<br>vi, nano</p><p>15. How long has the system has been running/up ?<br>uptime</p><p>16. History of user login success<br>last</p><p>17. Kill/stop a process<br>kill &lt;process-id&gt;</p><p>18. Memory stats<br>free -m</p><p>19. Show current date/time<br>date</p><p>20. Check network connection, IP address etc.<br>ifconfig</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cae4681677e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Linux For Raspberry Pi 2/3]]></title>
            <link>https://medium.com/@weavebytes/build-linux-for-raspberry-pi-2-3-f8338adc516f?source=rss-115587eff8e8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8338adc516f</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Weave Bytes]]></dc:creator>
            <pubDate>Sun, 19 Feb 2017 13:44:17 GMT</pubDate>
            <atom:updated>2017-02-19T13:44:17.074Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*lmWSWZIR3U7i8AluEOdLCA.png" /></figure><h3><strong>Building Linux Kernel</strong></h3><p><strong>Checkout cross compiler toolchain:-<br></strong>git clone <a href="https://github.com/raspberrypi/tools">https://github.com/raspberrypi/tools</a></p><p>and export path for tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/</p><p>better put it in your .bashrc</p><p>You can also build 64 bit, however, at the moment, default/recommended is 32 bit.</p><p><strong>Check out the latest source of kernel from:-<br></strong>git clone — depth=1 <a href="https://github.com/raspberrypi/linux">https://github.com/raspberrypi/linux</a></p><p><strong>Configure for Rapsberry Pi 2/3 boards:-<br></strong>cd linux<br>KERNEL=kernel7<br>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig</p><p><strong>Build the kernel source:-<br></strong>make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs</p><p>References:-<br><a href="https://www.raspberrypi.org/documentation/linux/kernel/building.md">https://www.raspberrypi.org/documentation/linux/kernel/building.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8338adc516f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>