Posts

Showing posts from 2020

Why We Need Better Information Technology Security

Image
Photo by Senor Sosa on Unsplash Data security is an important task that must be performed by a business or organization. Several decades ago it might not have been much needed, but along with the rapid development of technology, cyber security is now a very important part of a company that has technology involved in it, especially businesses who use technology that is connected to the Internet. The following are some of the reasons why we need data security on computers / IT systems. To protect digital data in our database, from destructive unwanted actions by such unauthorized users or from the cyberattack or a data breach. 1. The increasing Statistic of Cyber attack / Cyber crime We need to look at some statistics on cyber attacks so that we know that recently cyber crime has been very dangerous and has a very big impact ranging from individual users to big companies. And that gives us a solid signal that any IT system needs a better security system and that is very vital.

Developer Tips : Focus on feature and content, not the appearance

Image
I’ve been trying to become a UI designer. I want to develop a well-designed, really good looking system management app, and then I can sell it somewhere on the software marketplace and hope It can make me some revenue from it. So I started searching on what is the best UI library that I will use to develop the project. UI design, library or framework that have the best look and feel for users so the user won’t feel tired or bored while using the app. After analysing many libraries, I realize that even the best design, which in my opinion is Material design, in the end users will feel bored and feel that there’s nothing special with the design. Because appearance is kind of only work as a first impression, after a while using the app, the user won’t care about looks anymore, it is the content or feature that they will care about. Looks are the first impression whether a customer will decide to choose our product or find another product that is better than ours, so looks are

Flutter Button With Left Align Text and Icon

Image
flutter button left text Developing a flutter UI is very difficult for a beginner or I think any other technology it’s very intimidating for a starter. I remember my first time trying to make a button in Flutter that had left aligned text in it. I spent a lot of time on how to make it but never made it. Once you are getting familiar with flutter widget or component blocks, you can apply whatever style you want for your app. In html you can just do something like <button style=”text-align:left”>Text</button> but in flutter it is a bit tricky. So here I provide an example on how you can align text inside a flutter button to the left. Flutter button with left align text import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, visualDe

How To Create Flutter Card With Example Code

Image
This is a collection of Cards written in Flutter. A card is a sheet of Material used to represent some related information, for example an album, a geographical location, a meal, contact details, etc. Here are some cards that you can use for reference if you are just getting started in flutter but you don't know how to create a flutter card. Just copy paste the code and modify based on your need. 1. A simple flutter card example import 'dart:async'; import 'package:flutter/material.dart'; void main() { runApp(MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, visualDensity: VisualDensity.adaptivePlatformDensity, ), home: MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { MyHomePage({Key key, this.title}) :

Basic Knowledge of Oral Cavity, Identifying and Avoiding Oral Diseases

Image
Whenever I drink sugary drinks for some reason my mouth feels sour and I hate this sensation, there must be something wrong with my mouth. I am not taking my oral health seriously, so it’s not surprising for me to have very bad teeth and my mouth is gross. Only lately I've been very aware about how important it is to keep my oral health. Now I never miss a single day without bruising my teeth at least twice a day, floss my teeth, and rinse using mouthwash. I read a lot of stuff about oral hygiene, human teeth anatomy, bacteria inside our mouth, acids, and many other related articles in this subject. It’s not important for my profession right now, but maybe I need it in the future. Knowledge is always useful maybe not for today but later on. The study of oral cavity especially for human oral cavity is called Dentistry, also known as dental medicine and oral medicine. It is concerned with the prevention and treatment of oral disease, including diseases of the teeth and supporti

Free Download Motivational Google Slide Presentation

Image
If you are in a hurry to make a slide presentation for your meeting or you are about to give a motivational seminar. But maybe you are very busy and then forgot to create a presentation slide, so there's no time left to create it yourself because the meeting is just 5 or 10 minutes to start. Or whatever your reason is. Here in this blog, you can download the motivational slide. It's very simple and you can just explain it easily in your meeting. Download The Slide Free Motivational Slide Presentation Download Here This is The preview content of what is in this slide. We need to have a good preparation before the meeting. If you are very good at one subject, usually just by giving a very simple clue or phrase in a slide later on you can develop the very complex explanatory using your speaking skill. There’s one very funny TED talk titled How to sound smart in your TEDx Talk by Will Stephen. This very funny talk explain to us that usually a meeting, talk, or seminar is meaningles

How To Connect SSH Using PEM Certificate On Windows

Image
Usually you will need a pair of SSH username and password to connect to a remote server. But there's also another way to connect to the server via SSH but without password, just using a dot pem (example.pem) file. Here's how we usually do on Windows 1. Let’s SSH login using pem to confirm if it’s throwing error or the pem is fine, if error then we need to move to step 2 to fix it: ssh adam@10.0.0.123  -i server-cert.pem And here's the usual error that will throw if your pem file is not ready for SSH login. You need to follow the next step to make your pem certificate ready to login to your server via SSH. 2. Open Windows Explorer, then right-click on the pem file, then select "Properties". Navigate to the "Security" tab, and click "Advanced" 3. Disable inheritance 4. Delete all permissions, so it doesn’t have any permission 5. Now add you as the only only owner. By click button Add and then Select a principal, then Advanced. 6. On the showing p

The Era Of Cheap Information

Image
Photo by Markus Winkler on Unsplash Nowadays, you can get any information you need from the internet very easily. You can find almost anything from it, what you want to know and what you need, and most of them are free. Even as if the thing is very impossible for example because it’s very valuable content, require lots of time to working on it. There is always someone doing it and then share it for free. The best thing is not free Actually if you have the ability to do some internet searching, and you are not bothered by dealing with something like pirated content, you can always find anything for free. For example there’s tons of premium ebooks, premium video lectures, movies, tv shows, ready to download from pirates website. The best thing is not free, but if you are kind of internet savvy, you will always find someone willing to share premium content for free for no particular reason, they just love to do it. They bought some non-free content and then they shared it for everyone and

How To Add A New MySQL User, For Beginner Database Admin And Backend Developer

Image
MySQL database logo Adding new MySQL is not something we usually do on a daily basis as we are just stuck using a single user. I constantly forget how to add users because we don’t need to add users all the time. Maybe this article can help. Here’s how you add a new user to your MySQL database using terminal. 1. Create new user with username newuser, and host localhost, it can be an IP address CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'YourP@ssword123'; 2. Add our new user permission, in this case we use asterisk symbol, mean this new user has root privileges GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost'; 3. Commit or Reload the changes FLUSH PRIVILEGES; Adding a new MySQL user is a very basic command, every database admin or developer must know these commands. It’s much easier to add new user by using some database management tools like MySQL workbench, you don’t need to remember MySQL command, but it is sometimes yo

Gitlab Or Github, Which One Should You Choose

Image
Gitlab Or Github, Which One Should You Choose I really like Gitlab, one of the best platforms for hosting our codes, if you are much familiar with Github, then Gitlab is the same. Only with Github, they are limited for public repositories, meaning your codes are open for public, everyone can see it, even though your code isn’t supposed to be open source. That’s why I use Gitlab, unlike Github, in Gitlab you can create unlimited private repositories.  1. Gitlab Most of the time, I don't want to expose my code to other people, because it’s something that I really work hard on, so i need to keep it secret. I am not ready for open sourcing. If you're just an individual developer like me, or a small startup team that still struggles with getting stable revenue yet.  Maybe you want to minimize your startup budget, so Gitlab is the  wisest choice for your team. Gitlab as I know as I have been using it for more than 2 years now, is a free platform for your team to collaborate using Git

In Just One Month, Hackers Took Millions From Bitcoin Transfer

Image
After some famous public figures' accounts on Twitter got hacked, and tweeted some bitcoin giveaway scam. The hacker announces that the account giving away a lot of cryptocurrency for free, as long as they send them some cryptocurrency first. This leads to an estimate of hundreds of thousands of dollars in total, that user sends a bitcoin to this fake tweet. Elon Musk Twitter Account Hacked The cyber attack trends continue, now they targeted a smartwatch based company, Garmin, with a ransomware attack. Few days ago, CWT, a travel management company, got hacked too, by an anonymous hacker using ransomware asking for 10 million dollar. Although the deal ended with only CWT paying the ransom for $4.5 Million dollars in Bitcoin, it’s still considered a major loss. This CWT hacking is interesting because we can see the deal between CWT and the hackers, which the negotiation between CWT and the hacker was left on a Live chat conversation. So we can see how the deal is happening and the s

Develop Web Based Application Faster Using PHP

Image
Wordpress logo I’ve been developing apps using many different frameworks, across different languages, so I can tell you which one is best for building web based applications the quickest, simplest and easiest. For me PHP is the easiest way to build web based applications, you don’t need to compile the codes, you don’t have to use classes with long namespaces, etc.  And PHP is widely known, it’s actually very popular, so if you have some troubles while writing your codes, you can just do some quick search and find the answers right away.  Web based app using Wordpress If you just want to build a Web blog, company profile, no need complex business process, just using Wordpress is enough. Wordpress is not just a blogging platform, it can be much more complex than that. The way you do customization is by developing a custom plugin. Many developers in the Wordpress community already build themes, templates and set of complex features, for example for Ecommerce purpose, Inventory management,

How To Create An Import Excel/Spreadsheet Data Using PHP, Laravel and Phpspreadsheet

Image
If you build a data management app using PHP and Laravel Framework, maybe you need to have a feature to import data from spreadsheet files. Follow these steps below. We are gonna create a user interface form to upload the spreadsheet file and then process the data and insert them into our database. 1. Database table schema for our data In this example we are gonna use an example with Users data, it can be Customers, employees or anything. Here’s an example of the table schema that we are gonna use in our database. 2. Spreadsheets template We must define a valid spreadsheet template, an Excel file with XLSX extensions, and a set of headers to guide our user to fill the cell in the correct order. Here’s an example. 3. Install the library We are using a library called phpoffice/phpspreadsheet, it’s available on composer, so simply using composer command to include the library into our project. composer require phpoffice/phpspreadsheet 4. Set routes to map a controller for our UI and data

Heroku Free Cloud Platform, Start Develop Your Personal Project For Free

Image
Photo by ThisisEngineering RAEng on Unsplash I’ve been switching my projects lately from a Bare Metal VPS Server to Cloud or Platform as a service kind of type, as it is much more simpler, all i needed now is to focus more on the codes and the business logic, not on the infrastructure. As you may already know if you follow Tech news, people nowadays talk a lot about Clouds. And that’s why there's so many companies trying to compete as a cloud provider.  So now, we have many options to choose to deploy our project for the public user much faster because of the Clouds.  I see big companies like Google, Amazon, Alibaba and so many I can't mention offering Cloud. Some of them offer unlimited trials, but with limitations in storage and bandwidth. For hoby or individual projects, it’s okay to use free trials since we didn’t have any customers yet, we wouldn’t need so much resources in our cloud. Heroku Cloud Heroku is one of my favorite cloud providers. I've tried Google Cloud, b

The Internet Distractions We Face Day To Day

Image
Photo by Charles Deluvio on Unsplash Because I often get distracted by many things when I am in front of the internet, I've been thinking why this happens to me? Or if it also happens to you, then why does it happen to us? So why were we distracted? It is because as our brains evolved and became large and complex, and the easiness of information we can get from the internet, we are thinking about many things simultaneously, we want to improve this, improve that, basically everything, and it’s not wrong, that’s how we human species survive until this moment.  Our survival mechanism requires us to improve ourselves day by day, so we must learn new things in order to survive, we must be the smartest and the strongest in order to survive and to pass our genetics to our offspring. Also as we grow into adults, day to day, we face different people each time, and we face many problems too, and if we want to solve that problem, we need to learn how to solve it. What is most effective to min

Notice: Undefined index: name in test.php on line 3 Error On PHP 7

Image
Photo by  KOBU Agency  on  Unsplash Writing a PHP application is so simple and fun because the PHP is interpreted, you don’t need to compile first your program to run it. As soon as you save the project file you are working on, you can just execute from the browser. Consider this PHP file named test.php below <?php $array = array(); echo $array['name']; For really beginners PHP Programmers, some little error warning can be frustrating because most of them don't know how to handle and overcome the error. The error Notice: Undefined index: name in test.php on line 3 from the code above is telling you two possible situations: the variable doesn’t have the name key, the variable is empty, so it doesn’t the name key Solution Before accessing a variable key that may not exist, or the array itself is a Null or empty, you can first check the availability of the key using the EMPTY function. From the code example above that shows error notification, you can fix the problem so t

Blogging is hard, writing content for public readers is really hard, consistency is the key

Image
Photo by  Caroline Attwood  on  Unsplash When I was in High school and learning for the first time about creating a website or blog, I really enjoyed designing and writing on that blog which I lost.  It's a fun activity when you are doing the thing that you really like, for me working with a computer is the thing that I am very good at and enjoy spending time with.I am kind of introverted and have very few friends, so the outside world is not attracting me. Now I have grown up and blogging is not just a hobby anymore. Somehow I need to make a living because the job I currently work in is really not enjoyable. Then Blogging becomes less fun and somewhat intimidating.  Writing content for public readers is really hard, you are forced to have one level of knowledge above your readers, if they find you somewhat incapable of your writing, they’ll just leave and without recurring visitors, your number of visitors will be very limited. It’s a lot harder writing as an independent blogger

Tree Traversal in Java using Visitor pattern and For loop Example Codes

Image
Java Oracle Writing codes in Java is supposed to be reusable, it means that your code can be reused by yourself and other people working on similar things you do without rewriting the same code block  over and over. This is an example of object oriented passion on how you can use an object that could possibly have infinite children. You can use this class so you don’t need to write a loop over and over. Firstable given data person with children and grandchildren below. Now we can use for loop and visitor pattern to visit all the children recursively. 1. For loop The first example is a usual, easy to understand Example of how you write a Recursive method to visit tree traversal children using for loop. Using for loop is really really simple but Somewhat looks not an elegant way, and it could lead into bugs if you misplace variables before and after calling the recursive method. When the code gets bigger it becomes a mess. 2. Visitor Pattern And here’s the Object oriented way, using a

Java Map And Filter, A lambda or anonymous expression example

Image
Java lambda expression  It’s been a while since JDK 8 release, since that version of Java the language, it adopted many new nicer syntax, the one that i love is the Lambda expressions.  Lambda or anonymous function can make you write in a nice looking functional one liner code, for example below is a Java way of looking for keywords if they match in an Array, true if match and false otherwise. //given array List<String> words = Arrays.asList( "foo", "bar", "cool" ); //check if 'cool' exists boolean isCool = words.stream().anyMatch(word -> word.equals("cool")); 1. Map Map objects to another value as specified by a Function object, example below to Reduce List of object Person, to just List of person names. 2. Filter Filter objects that match a Predicate object. Example below is an example to filter people with certain age. import lombok.Data; import java.util.Arrays; import java.util.List; import java.util.logging.Logger; import j

How to Develop Intellij Plugin Part 1 - My First Time Experiences To Develop Plugin

Image
It is fun to develop a plugin for Jetbrains IDE platform, you know Intellij, PhpStorm, Pycharm and the like. As you may already know, Intellij is one of the smartest IDE in the world, especially for Java and Kotlin and frameworks like Spring. I believe it's their main concern.  If you are using Spring, Intellij will act so smart to detect any bugs you may introduce in your program, giving you completion, symbol references, even recommendation for the best possible code it might be. If you are not a Spring user, maybe because your company you work at doesn’t like it, or they are just happy with the framework or even language they already use, and Intellij doesn’t support it, then you may need to create your own plugin. Intellij provides an API for you to work on your framework or even your own language that they didn’t have support on, The API is i believe complete enough to get things done the way you want to, but the lack of documentation makes it really hard to get things fast, s

Start Using Docker Great Video Tutorial For Beginners

Image
docker logo It’s not gonna be a post about a testimonial or using Docker as an expert docker user, contrary i don’t even know how to use it, i am just starting to use it. So there will be no useful tips or tricks provided on this post about docker. It's been a while since i've first heard about Docker, i tried to use it several times but didn't get any reason on what is docker can be used for, then i uninstalled it, and reinstalled it many many times, still not getting any idea how useful docker is. Then I watched a really good presentation about Docker, this is the most basic Docker that made me amaze how cool docker is. Here’s the link of the video. I am still kind of unsure how to properly use docker though, because my software development career is usually not involving something like a mission critical system that we need to care about hardware level, and also the language and the platform i am mostly used like Java is already handling the cross platform part. Docker h

How To Start PHP Storm Plugin Development For The First Time

Image
Phpstorm version 2020.1 I was impressed by how smart Intellij IDEA and other jetbrains IDE products can be. If you use a framework, library or tool that the IDE doesn’t support, they also provide you with an API to develop your own plugin to support that framework or tool.  Problem is, it is not as easy as flipping your hand. In fact it’s pretty much night mare, because the lack of documentation and also plugin development is usually a very complex thing, that sometimes your framework that you want to develop the plugin is radically different from the simple example they provide, so you need to figure it out yourself. Recently I learned to develop a PHP framework plugin for PhpStorm, the framework is called Codeigniter. The framework is pretty much popular in the PHP world although kind of old and irrelevant to modern web application development using PHP compared to Symfony or Laravel. But I decided to keep going and with spirits in mind that if anyone can then i’ll learn in the end i

Popular posts from this blog

ASUS Battery Health Charging Software To Make Your Battery Life Longer

Is Nox Player a Malware? Nox Android Emulator

Flutter AppBar, With Icon, Title and Actions Link

ERROR 1348 Column Password Is Not Updatable When Updating MySQL Root Password

JavaFX Login Example Codes