Posts

Some Usefull Tips If You Have No Idea What To Write For Your Blog

Image
Photo by Brooke Cagle on Unsplash The vast and growing number of people on the internet gives you lots of opportunities if creative enough it can make extra income for you, even probably as your main source of income. I have a successful blogger friend that always motivates me whenever he shares his success by just becoming a blogger.  Writing and maintaining a blog is hard but it will pay off if you discipline enough giving your blog contents. So here are some tips if you struggle with coming up with new ideas for your blog next post. 1. Stop your perfectionist thinking Yes, coming up with new blog post ideas for your blog is somehow really difficult, sometimes we are too much thinking about people's response so at the end of the day you can end up with nothing. You want everything to be perfect and tidy but those kinds of thinking are just slowing you down. 2. Read some Reddit threads I have been using Reddit mostly just a silent reader for a long time, reading threads on reddit

C Pointer Program to get the last name from a full name

Image
C Language Flag / Logo Another C programming here, this article will simply explain how to do char array operation in C language to get the last word from a whole sentence, or in this case we just rename our function to be more specific to get a person last name from its full name. This is a very simple C function to get a user last name from a user full name. This function will do some pointer operation, so if you are trying to learn about pointer in C, this may help you little bit on understanding about a pointer in C: char * get_last_name(char * full_name) { char *last_name = full_name; int last_space=0; for(int i=0; i 0) last_space+=1; last_name += last_space; return last_name; } This function will loop through all the characters bit by bit and will try to find any spaces located on that character. If a space is found, then store the last space pointer location and return that pointer as its function return. - We define our function called get_last_name to

Recursive Function In C : Fibonacci, Factorial and Power of Numbers

Image
C Language Flag / Logo These are some example programs in the C language using recursive function to calculate Fibonacci, Factorial and Power of numbers. You can use a loop, but for a purpose of giving you an example on how to use recursive so we are going to use recursive instead. Fibonacci This is to calculate the sum of fibonacci numbers that are less than the specified number user input. int fibonacci(int number) { if(number == 0){ return 0; } else if(number == 1) { return 1; } else { return (fibonacci(number - 1) + fibonacci(number - 2)); } } - Our function accept integer, then we compare them using if statement - If the parameter number equal to 0, then the return of function is 0 - Also If the parameter number equal to 1, then the return of function is 1 - But if the number is not 1 or 0, this function will call itself with a new parameter for the first call is the parameter -1 and the second parameter -2, then add both results. - This

Everthing on the clouds soon - Google Drive, Onedrive and Windows File Explorer

Image
File Explorer, Google Drive, One Drive As a forever Windows user, I have been using File explorer since the very first time I knew about this OS. It is the default program for browsing files on our computer, so we were familiarised with its feature, and that it’s very convenient to use, work smoothly, and make it very efficient for our daily use. Windows file explorer is a very simple program basically just showing a bunch of files, with its properties like file name, size, file format, date created, date updated, type of the files and many more handy features. Just like most file explorers in any operating system. File explorer actually has many more functionalities behind it, but for me i have never used most of them because file explorer is file explorer, it is just for working with files. Some features in file explorer  for example i have never used is the search box that is on the right top of the windows. I have almost never used it for example because it’s not always showing me

3 Easy Tips To Keep Your Blog Up To Date, Even Though You Are Very Busy

Image
Photo by Jan BaborĂ¡k on Unsplash After a few years stick with the blog you have, you have been promised to create a daily content to your blog so your blog won’t sink from the internet, but it doesn’t happen, your blog lacks contents. And then its visitors start to decline. But don’t worry, you're not alone in this case, it not just happened to you, it probably happened to the majority of bloggers. Yes the only thing to keep your blog growing or at least stay and not losing any visitors is just to maintain your blog up to date by giving your time to write and publish at least one single post everyday. But then life turns out to be very complex and messy, it rarely, or worst it never goes according to our plans, it's just the way life is, full of surprise and chaos. Our life requires us to take care of other things in our life other than just writing some article for your blog, that’s why your blog is sinking from the internet search. If you need some motivation on how to keep y

How To Create An HTML Input Date & Time In React

Image
html datetime in react The thing about HTML 5 is that it does have some features that work from different browsers and the other doesn't, the obvious element that is really useful is the HTML input type datetime-local. It works perfectly on Chrome, but unfortunately doesn’t work on Firefox and Safari, if this happened only on an internet explorer or something older, i wouldn’t bother, but Firefox or safari is a major browser with a huge amount of users, so it is something that we need to support in other for our app to be function. So here’s what I came up with using a combination of HTML type date and html type time to create a single react component as a replacement of datetime-local. Here's the full example code on Code Sandbox so you can play with: FULL CODES & DEMO . The idea is just to create a combination of input date and input type which is supported by All major browsers, so there’s nothing fancy here. There’s already a react-datetime library but it doesn’t wo

How to Create Javascript Countdown App

Image
Countdown Timer If you need to create a countdown app in Javascript, this is the solution I am going to reveal. It's very easy to do anything in Javascript, especially because of the abundance of libraries out there. You don’t have to experience the pain process developing stuff from scratch. It’s generally not easy to make a countdown app because the nature of our calendar system which is very mess up and not well structured, so sometimes 1 year is 12 months, or  365 days sometimes less, sometimes more, and then a month can have between 28-31 days, a day is 24 hour, 1 hour is not 1/10 minutes but  it’s 1/60 and so on. Real mess, so very difficult to crush those numbers because it’s nothing like base 10 which is the number we are familiar with. Luckily in Javascript there’s tons of libraries to deal with Calendar or Date stuff, there’s one that stands out is MomentJS. So here’s a Javascript code on how you create a countdown app using javascript, in this example we are gonna do a c

How To Disable And Re Enable Hyper V On Windows

Image
VMWare Logo If you use an older version of virtualization machine like VM ware or virtual box you might at some point face this problem “VMware Workstation and Device/Credential Guard are not compatible”, this is a message telling you that there’s a conflict from your newest installed program with VMWare. For example i tried to install Docker (a containerization program), afterward my VMWare stopped working. There’s conflict between VMWare and Docker, Docker can only be run when Hyper-V is activated but VMWare doesn’t work if Hyper-V is activated.  The solution for this type of conflict is actually very simple, disable Hyper-V when you want to run VMWare and then enable Hyper-V when you want to run Docker that needs Hyper-V activated. How to disable Hyper-V 1. Open control panel 2. Programs 3. Turns windows feature on/off 4. Uncheck all feature under Hyper-V 5. OK Disable Device/Credential Guard It probably is not enough to make your VMWare work by disabling Hyper-V. You need one extra

How to Protect Your Windows PC with Cloud Backup Service?

Image
Nowadays, more and more computer users are aware of the importance of computer backup. Because once the data is lost, it may cause serious consequences to users, especially for enterprises and special institutions. However, data on your computer is always facing the risk of losing due to system crash, hardware failure, human errors and so on. Is it necessary to cloud backup Windows PC? Since backing up your data on the computer is necessary, what is the best backup solution for computer data? In the past, users thought external storage devices like external hard drives, flash hard drives, USB drives, etc. are safer than local hard drives and preferred backing computer data to these external storage devices.  But recently, people have realized that the external hard drives are not safe either because they also may be damaged or lost. Therefore, users want a safer backup solution to protect their computer data. According to the 3-2-1 backup strategy, to prevent your data from losing in m

How To Build a Simple OS Using Windows WSL-Debian

Image
How to build simple os from Windows This is just a repost from Osdev wiki here https://wiki.osdev.org/Bare_Bones . It’s very thorough and easy to follow step by step guide developing a simple OS. I don’t have the skill of explaining that well, so if you want to know in-depth, read the original post. I will only provide a method that is working for me, a summary and the code that is working on my Windows 10. Actually it’s not Windows, it’s Linux inside Windows, it’s 100% Linux, not cygwin or mingw. It tastes like 100% Linux. Now, here's a step by step to develop an OS on Windows. 1. Have a Linux on your Windows First thing to do, you are gonna need Windows subsystem for linux (WSL), because the main Windows OS usually doesn’t have very many tools for this kernel development purpose, it’s easier to do in Linux. In case you don’t know what WSL is, you can read my previous article ( Windows terminal WSL ). I use Debian (but Ubuntu or any Linux that has an apt package manager will be

Popular posts from this blog

How To Uninstall Angular CLI, The Angular Framework

ASUS Battery Health Charging Software To Make Your Battery Life Longer

How To Create Flutter Card With Example Code

Flutter Button With Left Align Text and Icon

Is Nox Player a Malware? Nox Android Emulator