Showing posts with label NetBeans. Show all posts
Showing posts with label NetBeans. Show all posts

Tuesday, June 14, 2016

Hello, Android!

So I finally was able to make the Hello World app for Android running in NetBeans. There's a few problems I want to adress:

  • Android emulator is super slow. Due to this, I tend to shut it down when it was in fact starting the virtual device.
  • After the device starts, I will not see my app running, just the blank default android screen. In order to see how my App looks like, I have to go back to NetBeans and click on debug project.
  • Never before have I been so happy to see the Hello World screen on a slow emulator running on a 5 year old machine as right now.
So I guess it's the start of a very stupid journey where I make stupid apps for the kek, and maybe later make some more fun and not so stupid app for real people.

That's enough work for today though. Will update on progress later.

Sunday, June 12, 2016

Starting a GitHub

Yesterday I made a stupid decision to make a GUI program from scratch with NetBeans. Its function is calculating the day of the week a specific user-given date is. As I wrote in my last entry, we had this assignment at the university, so I thought it would be fun to write a program I already know using a new language and a new method (GUI vs console-based).

I couldn't be more wrong.

After hundreds of error messages, I finally know how class and object in Java are supposed to work, as well as project linking, importing and referencing between files. That's the good news. The bad news is, I spent all my Friday night and Saturday on it, and my social meter is developing into an interesting number zero.

In accordance with the profound knowledge, I decided to push along the momentum and get to know online repositories and subversions as well. I am not a stranger to the ideas, I have seen people doing it back when I was still a Blender bro. It must have been at least 8 years. How time flies.

But seeing people doing it and actually doing it are very different subjects. I downloaded git, read the tutorial, push/pulled my repo on GitHub as practice, and decided it's too manually complicated. Easy solution? NetBeans. Though I just recently got it, I fell in love with it so much. It has everything a programmer needs (at least that's what I think, I'm no programmer) and it has Git support so that I don't have to use the terminal. Yay laziness.

My first uploaded project can be found here. I was stupid and uploaded the whole NetBeans project, but you can just download the src folder and make a project yourself with whatever tool you like. It still has a lot to improve, but I'm not going to spend another goddamned second on that this weekend.

Thursday, June 2, 2016

I guess we should start somewhere.

After an unknown problem after an unorthodox attempt at removing the Android Studio from my /home folder, my iBus stopped working. So I thought to myself, what the hell, fresh install is always a good thing to do (which is false, but I'm going to keep myself that - if you disagree you can go suck a puck) and reinstalled my Leap 42.1 OS.

To avoid making the same mistake, did a better partitioning this time, leaving 50GB for / and 50 for /home. I now have all the space I want, so I installed Android SDK tools on /home. It took 20GB. I also installed NetBeans IDE and started playing with it. So far I still couldn't make an android program that works, even a Hello World, but I think I would be able soon.

The GUI designer in NetBeans is quite practical. I used Qt for the last month during my practice in the Uni, and got fond of its designer. However, it has a retarded license, with which you have to pay 3000 or so Euro if you want to develop a closed source program, and it sucks. Because I haven't even seen 3000 Euro in my life.

So I switched to NetBeans. And to make sure, I looked up in the NetBeans wiki, and it states:

Can I use NetBeans to create a commercial application?

Yes, you can use NetBeans to create commercial applications and sell them.
There are no license costs for any kind of usage of NetBeans.
  • You can use the NetBeans IDE to create applications and sell them without any charges.
  • You can build applications on top of the NetBeans Platform and sell them without any charges.
  • You are not required to open-source your own code (but you can).
I'm so happy.

So, where was I? The GUI designer. Had a little fun yesterday making some dumb program calculating some basic shit, with shiny buttons and marvelous text fields. I guess that's a good start. Many was here before. Many will be here again. And as King Solomon said, there is nothing new under the sun.

I installed iBus afterwards and thank God it worked. Now I can write fancy cuck languages now. Wie schön daß man so was sagen darf. But my main goal remains to write to my dear friends and family who cannot afford to write in tiếng Anh. And this blog will have nothing more to do with iBus. I hope.

So happy first post and hello world!