Posts

How To Create Service On Windows

Image
Windows is really amazing OS, you have cool GUI, full, optimize performance especially for personal PC, it has lot of capabilities that any other OS can't compete with windows. And if you are programmer, windows also support you by providing easiness of program development, like for example when we have a program need to have a service whenever every user log on to their computer. You can create a (.bat) file to be executed when user doing installation.

To create service for experiment purpose, you can run cmd using administration privileges

sc create MyServiceName binpath= "\"C:Program Files (x86)\My Service\yourProgram.exe\" --someparameter=0" displayname= "My Service"

The trick is, always create space after equals sign, and always create double-quotes in your program location. You can add more option, like for the example above we define displayname which will appear as our service name, You can also read more detail about SC command here from offic…

What is DNA Sequencing?

Image
It's basically just determining DNA sequences of one biological creatures. The easiest way to do DNA sequencing is on simple viruses like Sir Frederick Sanger did back in 1977, it easier to do because even a simple organism like virus can contains hundred of thousands of DNA sequences, compare to complex species like human that has billions of sequences, it is still hard to do DNA sequencing  on none other than viruses.

What's the benefit of DNA sequencing so that it's really important thing to do is because, it is like you can do anything with that sequences of DNA, as you already know, DNA is like our biological body's blue print, if we we do know our own blue print, we can either replicate our self, improve human health, curing diseases in our body like cancer, etc. there is many benefit of knowing the fundamental block of our body.

The problem is still remain that's it is really complex things to do, it billion dollar project to map our Genomes because it'…

Google Adsense and Google Adwords

Image
Google AdSense and Google AdWords or now is known as Google Ads is subsidiary of Google in which their main activities is on advertisement bases, so they are responsible for managing ads that appear on Google Platform such as YouTube, Gmail, etc.

When you talk about Google, the main idea to rise in your mind is Google search, where you can search for anything you want to get some result you really need, but Google can't run by just their search engine, with it advertisement, they can survive as company, because their main revenue is mainly from advertisement.

There is also Google AdWords, it also advertisement based, but it has different goals, where google AdSense is for publisher to place google ads, google AdWords is where advertiser from many companies to make an advertisement that will be place on google publisher, some sort of, google AdWords is collecting ads and google AdSense is making output for all of those ads.

Composer PHP Package Manager

Image
Composer is package manager used by many PHP developer. It is not a de facto package manager like NPM for node or pip for python, it's just the popular one, among maybe another PHP package manager.

To use composer, there's two options, the first is a binary file without PHP dependencies, so it can run without PHP, and the other one is composer that written in PHP, we usually seeing it as "composer.phar"

Composer is of course fast an reliable, it has huge collection of packages, from the popular framework like Symfony or Laravel to small mini project like if you want to generate JWT token you can use rbdwllr/reallysimplejwt.

Of course composer syntax is different than any other package manager, npm an pip has install, composer has require instead of install, it's not a easy for developer from different language to use composer because of that differences.

Last Day On Earth Survival Games

Image
Last day on earth survival or people just like calling it LDOE, is mobile game for Android and IOS about surviving on the last day on earth. You basically just running around to different location to collect resources for survive on the world that has been infected by some sort of virus that turn human into zombies.

In the last day on earth, you are not alone, there's another survivors also try to avoid to death by the lack of declining earth, all resources are important from food to water, you must keep it safe so that you can use it, or exchange it with dealers, but to meat dealers, you need to repair your broken radio on your base.

There as some known place you can visit, like bushes, mountains, another survivor bases, a farm, gas station and. and later when you're getting more advanced you can uncover more locations to getting more loot in other for you to survive by collecting stuff like woods, stones, that you can craft it into  more useful stuff like  have some more st…

How To Start Java Web Development

Image
Developing Web app on Java can be daunting, it requires deeper understanding on programming world, but don't worry, this post will give you a summary about set up web development using Java, for detailed step, you can just googling or asking on active forum.

1. Install tomcat
2. Set tomcat user password /tomcat/conf/tomcat-user.xml
3. Install Java EE plugins on Netbeans 4. Add tomcat server on Netbeans
5. Generate your spring boot project here https://start.spring.io/
notes: - on the dependencies field, add at least web, mysql, jpa and devtools
- on packaging, choose war 6. Extract the zip file into your projects directory 7. Using Netbeans, open the project 8. Set up application.properties located in src\main\resources
spring.datasource.url = jdbc:mysql://localhost:3306/youDatabase?useSSL=false spring.datasource.username = root spring.datasource.password = 1234 spring.jpa.hibernate.ddl-auto=create

9. Build the project
8. To deploy your web application to your sever, just upload your …

Enable Remote SMTP For Local Development

Image
When you are working on web development using PHP or other language, you may need to provide mailing feature, and you may already have a server with Postfix or similar mail program running, and then you want to enable that server to be able to send email with your local computer, because the default emailing port (25) isn't open for public.

Without further ado, let's start to make your server to send email from your local computer, We assume that you already have Post-fix or similar software, if you don't just do quick installation, it won't took long.

1. Add new port for SMTP (simple mail transfer protocol) services, the default port is 25, we are gonna add one more port which we will use port 2525. It's up to you whatever port you choose as long as it is not already been used by another services.

2. To add more SMTP port, you can use simple editor like vim or nano and with sudo privileges, now using vim:

sudo vim  /etc/postfix/master.cf

3. Then add new line, afte…