Posts

A Year with Her

Image
I’ll be taking my time spending my life
Falling deeper in love with you One person is enough to touch your life.
She is that person for me.

History...over a year ago.

It was a rainy evening.
I had an umbrella though.
I was wearing a blue shirt, grey pants and a Nike Shoe.
Before going for dinner to meet her, I went to store to buy school materials for my sister.
The store is not that far from our meeting place, so I decided to walk going there.
It was still raining but I managed to arrive there first.
I waited a little bit then she showed up without me noticing her.
I think I was busy browsing and checking with my phone.
I was surprised.
Well, I haven't seen her for almost a decade.
But how can I forget my first love?
That was young love but she is.
I took an order already, it was a full meal.
She just ordered cake and shake if my memory serves me well.
We talked, we exchanged words.
She has a lot to say about something.
She's still the same.
I was amazed.
Time passes, rai…

Revamped Our Rainfall Monitoring System

I had mentioned that I was digging ReactJS in my last post, so I applied what I have learned about it to revamp our rainfall monitoring system.

It's funny how we code last day, month or year is very much different compared today. It's not bad though, that means we're (I'm) improving or there's a progress. The system before uses JavaScript, JQuery, Openlayers and  a JavaScript library for date formatting.

Here's how it works:
Request data from a different (an external) domain(server)Get the latest value and append it to the pre-defined GeoJSON objectEvaluate the value to determine its rainfall intensity Finally, plot it on the map Downside, upon clicking each points, the system needs to request again the data to display it in graph.

Now, like I said, there's a progress.

Aside from using ReactJS, I also changed how it works.
Request data from a different (an external) domain(server).Get all the data (not just the last value) from all available stations and sto…

My Adventure with ReactJS and Django I

Image
I am digging ReactJS these past days. I am trying to figure out how it works this is because of my curiosity looking at the source code of a certain website with clean html structure--like having just a head, body and a division within it only. I was wondering how the HTML elements have been rendered on that page, and there I found out that it is possible by using ReactJS (I don't know if there are other library that can do it).

Just an introduction what is this ReactJS--it is developed by Facebook (made it more appealing to me). If they are using it, therefore, it must be really efficient and fast. As the description on the website states, it is "A JavaScript library for building user interfaces". Based on my understanding, it utilizes the Virtual DOM, meaning instead of directly changing or re-rendering the DOM when updates is needed,  ReactJS will determine and calculate if there are changes in the UI in Virtual DOM and if there is, it will re-render the entire UI in…

Publish PostGIS Layers in GeoServer Automatically using cURL and REST

Disclaimer: The idea came from this blog.

So, what's the difference? I'm using Windows.
 cURL should be installed already.

If you have lots of tables in your database that you wanted to publish in GeoServer, you can use this method. Just prepare a list of tables (separated by new line) you want to publish in a text file format.

Before proceeding in publishing layers, you need to setup a workspace and store in your GeoServer first. Although this can be done using cURL and REST API, but it is more convenient in that way.

After a minute.... :D :D

Create ".bat" file Use the code below but (of course) change the necessary inputs

for /f %%a in (<list of tables you want to publish>.txt) do  curl -v -u <username>:<password>  -XPOST -H "Content-type: text/xml" -d "<featureType><name>%%a</name></featureType>" http://localhost:8080/geoserver/rest/workspaces/<name of workspace>/datastores/<name of store>/fea…

Confianza x Amor

Image
Confidence.

That word does not run in my veins.
I always have doubts with my being.
As if, in every step I take, worst can happen.
I don't know.
I was not raise like this.
I've changed a lot.
As I grew older, I am becoming more doubtful with myself.

Love.

I have found love.
A love that suits for my being.
As if, it was meant for me, specifically prepared.
I don't know.
It's a mixed feeling but not a mishmash.
It has changed me.
As this love goes deeper, I am believing that the best is yet to come.


#bestyearever

Image
I am declaring that 2016 was my year!




Less sick days. Able to help my siblings with their needs. My mom is healthy. What more could I have asked for? I'm so blessed!  💫😝💥

BINBOUGAMI GA!: A DEEPER LOOK

Image
This is not your typical anime. Although it only spun for 12 wonderful episodes, it will surely leave you an impression.
The main protagonist in the anime is Ichiko Sakura. She had been blessed with the inherent gift of being extremely lucky and she is also able to absorb the luck of the people around her causing the gods to send Momiji Binboda to restore the energy balance on Earth by stealing the Fortune Energy of Ichiko.
This anime shows us the severe level of difficulty in putting other people’s need before ours. Humans are naturally self-centered. I think that it is one of the main traits that are actually needed by us humans to survive. People in the history grew in power because of this trait and secured their future and their next generation’s future. It is as natural as the feeling of annoyance you get when you bring food for yourself and your friends, even the people you’re not close to, ask to have a share of your food. If you think about it, being self-centered isn’t really…