Recent Blog Posts
What if you wanted to check if something already existed in your mongo database and if it existed, return document and if not create one.
When getting a document out from mongo with mongoose client, the output is not of plain object type and it means you cannot easily use it inside template engines. I came across this problem and thought that couldn't use the output inside handlebars "each" helper.
Sometimes when using handlebars you may need to have extra functionality over your data in the template. Such as having an intelligent select element, checkbox, global variable and etc. Let's create some of this functions here.
When using ReactNative for making a mobile app sometimes it is good to have a placeholder (or loading) for online images. In React for showing an online image there is no way to know if loading of that image failed.
In react there are many ways to create a component and use it throughout the program/website. At first, using class components looks easier but when the app groups larger and larger you may end up thinking about other approaches.
I came across a problem that when I'm developing plugins for OctoberCMS after I finished working with them, normally I disable them and got to create a new one. Okay? the problem is they still exist! all the routes, navigation menus, and everything still exists even after disabling them!
Coding with React is fun and all but when your application grows bigger and bigger it is cumbersome to track all state changes in so many places and have all components refresh with every tiny single change in the state! Then what can we do? you can use Redux.
I started my work in web development from the front-end, but soon I have gotten bored and from nasty CSS and HTML. at the time there weren't any frameworks like react! So I set my course through backend development and fall in love with Laravel but that's another story for another post. let's talk about React.
Make several copy of a single file in linux terminal by looping in given range
Posted in Terminal on by Zartosht Sepideman