Where It All Started.

Where It All Started.

Life, Stock Trading, Investments, Business and Startup. Most are programming stuff.

Year: 2019

Thoughts Of You (For Joane)

Have you ever been in love? Horrible isn’t it? It makes you so vulnerable. It opens your chest and it opens up your heart and it means that someone can get inside you and mess you up.

— Neil Gaiman in The Kindly Ones.

Is it ok if I took some of your time?
Is it ok if I held you awhile
For in your arms I’m always home
To pull you close and whisper in your ear
And tell you our feelings are nothing to fear.

Is it ok if I were to replace
All the men in your past that just wouldn’t do
And vow to be faithful and always be true?

Is it ok if I took the part of being your man?
Is it ok if I opened my heart?
Is it ok if I make you smile?
Is it ok if I took some of your time?

To tell you there’s nothing I’d rather do
Than spend my whole life loving you…
Always smile 🙂

Know that when everything crumbles, I will not.
Missing you right now.

DNA And As A Biologist

Software Engineering might be science; but that’s not what I do. I’m a hacker, not an engineer.

— Jamie Sawinski.

A quick fact about me is I’ve studied B.S. Biology before and taken the course of BIO 16N (DNA Structures). One of the most important thing that I’ve learned was DNA will always start at a specific codon which is AUG. The AUG is the start codon otherwise no protein will be synthesized, then there are only 3 types of stop codon which is UAG, UGA, UAA. This has been a short post as I only want to remember this minor detail.

Staring At The Sky

You may not be her first, her last, or her only. She loved before she may love again. But if she loves you now, what else matters? She’s not perfect – you aren’t either, and the two of you may never be perfect together but if she can make you laugh, cause you think twice, and admit to being human and making mistakes, hold onto her and give her the most you can. She may not be thinking about you every second of the day, but she will give you a part of her that she knows you can break – her heart. So don’t hurt her, don’t change her, don’t analyze and don’t expect more than she can give. Smile when she makes you happy, let her know when she makes you mad, and miss her when she’s not there.

— Bob Marley.

Just caught myself smiled again for no reason
A smile that could probably mean one thing;
Thinking of you my beloved dearest
Always on my mind running all day long

I wouldn’t mind waking up in morning
To check every messages I’ve got from you;
A message that always do put a smile on my face
Even on the most difficult time of my life

You fill my heart with joy each and every day
Just like a star that brightens up the night sky;

Right now I’m staring at this beautiful sky,
Hoping that you were also looking at the same sky
That same sky that connects both of us

I wish I could talk till the end of day
But now I’m running out of things to say
So I’ll end by the line you probably know
I Love You more than what I could show

Thank you for sharing that happiness to everyone
Smile my one and only 🙂

Texting Girls What Did I Learn From It?

I was fascinated with the phone system and how it worked; I became a hacker to get better control over the phone company.

— Kevin Mitnick.

Hi guys, in this TIL (Today I Learned) article I’ll talk about what are the things I’ve learned from texting girls. This would mostly give you some profound knowledge on what I did try and some conclusions.

  1. Giving up too easily on your texts to a girl One mistake guys make when texting girls is giving up too easily. They’ll text a girl, and if they don’t hear anything back (or just get a brief reply) they’ll assume the girl isn’t interested and give up. But this is often a big mistake. After all, the reasons a girl won’t respond to a text sometimes have nothing to do with whether or not she’s interested. For instance, she may be busy, in a bad mood, or is simply unsure of how she wants to respond to your text. The point is you don’t always know what’s going on in a girl’s head, so there’s no point in assuming the worst. And even if you’re right and she isn’t interested at that moment, that doesn’t mean she won’t change her mind. But if you’re going to get her to change her mind (and get her to start texting you), you’ve got to stay engaged. So if a girl doesn’t text you back or doesn’t seem that interested, but you want to stay engaged, here’s what you can do: Give her some time (a few days… it can even be weeks) and then re-engage the girl with a text. Like all texts, you want the re-engaging text to the girl to be light, fun, and playful. Also, you’ll have better odds of getting her to respond to your text if you ask a question that compels her to reply. Altogether, here’s a real life example from The Text Book of what a good re-engaging text to a girl may look like: Hey crazy face…are you still alive? Should I send a search party of midget ninja’s (or minjas as they prefer to be called) to come rescue you?! Keeping this light, fun, playful tone in your texts to a girl will get her smiling and put her in a good mood. If you can get her to smile, you’ll likely get a text from her soon.
  2. Texting a girl too much Nothing can kill attraction and ruin your chances of seeing a girl again quite like texting a girl too much. It makes a guy look needy and provides no challenge for the girl (which means she may quickly get bored and move on). To avoid the common mistake guys make of sending a girl too many messages, here are a few simple rules for texting girls that will help you text a girl the right amount:
    • When texting a girl, keep the text ratio close to 1:1. You want to send her about as many texts as she sends you (and look to keep them roughly the same length).
    • Cut out needless texts. Don’t text a girl in situations where a response isn’t necessary. For example, you don’t need to reply to her “have a good night!” text if you’re just going to say “you too!” At that point the conversation is already over. Let it end with her.
    • Keep an abundance mentality. Over-texting a girl tends to be the result of scarcity and neediness. That it, guys feel they need things to go well with her because they are afraid it’s the only opportunity they’ll have with a girl for a long time. To avoid this, you want to have an abundance mentality when texting women. Simply imagine that you have a hundred other amazing girls that are actively interested in you. This will help you from getting too hung up on that one girl and prevent you from texting her too much.
  3. Taking your texts to a girl too seriously There’s a time and place for serious conversation with a girl, and texting is NOT it. Trying to have a serious conversation over text is exhausting and nobody likes doing it. So keep the serious “let’s-get-to-know-each-other” conversations to live interactions. When texting a girl, you instead want to focus on having fun and keeping it light. Now, a great way to make sure you keep things light in your texts to girls is by using emoticons. Lots of guys shy away from emoticons and think they’re “girly”. But guess what? You’re texting a girl and girls like that stuff. Plus, they ensure that she won’t take what you say out of context. She won’t have to guess what your mood is because the emoticon conveys that for you. As a result they help you avoid misunderstandings and unnecessary drama.
  4. Not texting enough women When a guy is just texting one girl at a time, it’s easy for him to get wrapped up in that “scarcity” mentality mentioned earlier. If you want to get out of that mindset for good and become a master at texting girls, then you should be texting lots of women. Texting a lot of women will help that abundance mentality develop naturally. Once you have that, you’ll bring a fun, care-free attitude to all your texts and interaction with women – which is going to make you that much more attractive. Plus, with all that practice, you’ll gain an intuitive knowledge of what to text a girl. You’ll transform into a texting master who knows and naturally follows all the rules for texting girls.
  5. Missing the big picture in your texts to women Sometimes guys forget just why they are texting a girl. They get wrapped up in idle chit chat and completely lose track of the big picture. The big picture of course, is to get the girl to meet up through text. Now, this doesn’t mean that texting girls is all logistics and planning. See, the fun, playful texts like the one mentioned earlier still play a role. Fun texts are key to re-establishing that attraction which will make her want to meet up. But from there, remember that the purpose of your texts to a girl is to keep moving the interaction forward. Therefore, your texts to women should be about building attraction and planning to meet-up. If your texts to a girl don’t have purpose and direction, it’s likely she’ll get bored and her attraction may begin to fade.

To wrap this up, the most important part is to believe in your self. This is just an update re-post to fix some wordings.

❌ Originally posted on August 22, 2019.

Top 3 DNS Providers That Provides Good Service in SEA (Southeast Asia)

If you give a hacker a new toy, the first thing he’ll do is take it apart to figure out how it works.

— Jamie Zawinski.

DNS or Domain Name System sometimes called the phonebook of the internet is one way for us to easily access our favorite website, it translates and redirect human readable domain names (e.g. yahoo.com, google.com) to their respective IP address. Finding the good DNS provider is vital in accessing information that is sometimes censored by our government, ISP and the likes. This are my top three good DNS (Domain Name System) providers that are really fast, secure and reliable that can be use in Southeast Asia.

Cloudflare

Cloudflare Public DNS (IPv4)

1.1.1.1
1.0.0.1

Cloudflare Public DNS (IPv6)

2606:4700:4700::1111
2606:4700:4700::1001

So why Cloudflare1? Choose Cloudflare if you want less than <1ms of domain name resolution. Seriously, they have the fastest name resolution on the internet.

Google

Google Public DNS (IPv4)

8.8.8.8
8.8.4.4

Google Public DNS (IPv6)

2001:4860:4860::8888
2001:4860:4860::8844

So why Google2? You will use this if you need an old but still good reliable DNS server. Its been used as a primary name resolution on big companies as well as local workstation. Its much more better than your ISP (Internet Service Provider) provided DNS.

Yandex

Yandex DNS (IPv4)

77.88.8.8
77.88.8.1

Yandex DNS (IPv6)

2a02:6b8::feed:0ff
2a02:6b8:0:1::feed:0ff

So why Yandex3? You’ll choose this if you’re a webmaster due to super fast name resolution propagation. This is the fastest DNS for name resolution propagation, on which ever region you are currently.

These three are mostly corporate but they do provide fast speed TLD name resolution. And if you really still feel they can be manipulated, feel free to enable DNSSEC. For example on CloudFlare, a single domain would resolve at less than <1ms.

So guys, what are your top DNS providers?


  1. Cloudflare, Inc. is an American web-infrastructure and website-security company, providing content-delivery-network services, DDoS mitigation, Internet security, and distributed domain-name-server services. Wikipedia ↩︎
  2. Google LLC is an American multinational technology company that specializes in Internet-related services and products, which include online advertising technologies, search engine, cloud computing, software, and hardware. It is considered one of the Big Four technology companies, alongside Amazon, Apple, and Facebook. Wikipedia ↩︎
  3. Yandex is a technology company that builds intelligent products and services powered by machine learning. Our goal is to help consumers and businesses better navigate the online and offline world. Since 1997, we have delivered world-class, locally relevant search and information services. ↩︎

I Will Be Here

You know you’re in love when you can’t fall asleep because reality is finally better than your dreams.

— Dr. Seuss.

When your sad and depressed,
I will be here to put a smile on your face.

When your angry and frustrated,
I will be here to calm you down.

When your hurt and in tears,
I will be here to wipe them away and mend the pain.

When your lonely and have no one,
I will be here to comfort you.

When your feeling unloved and unwanted,
I will be here to tell you how very important you are.

When your having a bad day and need to lash out,
I will be here to let you let off steam, you can yell at me.

When there is something on your mind that you need to say,
I will be here to listen and understand.

When your lost in confusion,
I will be here to help you figure things out.

When you feel like your going crazy,
I will be here to bring you back to sanity.

When you are so overwhelmed and need to get away,
I will be here with open arms so we can runaway together.

When your scared and frightened,
I will be here to protect you and make you feel safe.

When you are full of worries,
I will be here to worry with you.

Windows Network Discovery Using Built-in Tools

Success is neither magical nor mysterious. Success is the natural consequence of consistently applying basic fundamentals.

— E. James Rohn.

Hi guys, last week I’ve worked on a vanilla Windows 10 client computer without internet but is connected to a LAN with many computer.

I’ve asked myself on how to get all alive computers in the network using only built in tools from Windows.

Here are the things I’ve did in order to accomplish this feat.

First thing I did was ping all broadcast IP using ping <broadcast ip> -t -i 4. This will ping the broadcast IP, this action will spread and send all message to all active computers in the network. After that we would wait for around 5-10 seconds, and execute the follow up command which is arp -a. The arp command will check the address resolution protocol and list it down.

The -i 4 on the ping command instructs to ping only on IPv4 (Internet Protocol Version 4) network. That’s all there is to it. Kindly check the manual page of the commands for different flag combinations.

❌ Originally posted on August 18, 2019

I Want To Be With You (For Joane)

She may not be the most popular or prettiest but if you love her and she makes you smile… what else matters?

— Bob Marley.

Whenever I saw you, is like the stars lighting up my sky
You call me and check me everyday,
You just don’t know how much I appreciate it
You’ve seen my past yet you’d never leave

So remove all your worries, for my intention is real
If you love me till your last breath,
I assure you that I’ll never leave your side
And I will love you ’til the rest of my life

I love you. Always do smile.
When you think you have nothing left,
I swear to you, I’ll always be by your side.

Gimp Automating Image Processing with Python Fu

What a large volume of adventures may be grasped within the span of his little life by him who interests his heart in everything.

— Laurence Sterne.

Hi guys, one night I decided to create an online store and sell some drop ship products. I grab some pictures from the wholesale seller and planned to customize those images (just to put some store branding).

There were a hundred images that I want to customize, by hand it would take ages so I decided to create a batch script. My first thought was to use Gimp (an open source image manipulator) and Script-Fu. After trying out what the result would be on Python-Fu console, I settled with this. It was a simple design but I was satisfied.

Here is the script that I use. Try it out on Python-Fu console and call it convert_to_poster(n), where n is the image number in the image list inside Gimp. You could for loop it for faster batch processing.

First we set the variables.

current_image = gimp.image_list()[n]
center_x = current_image.width / 2
center_y = current_image.height / 2
c_size = 600
c_size_d = c_size / 2 

Then we resize the image / canvas.

pdb.gimp_image_resize(current_image, c_size, c_size, c_size_d - center_x, c_size_d - center_y)

We create an empty background layer and just fill it with white.

bg_layer = pdb.gimp_layer_new(current_image, c_size, c_size, RGBA_IMAGE, "bg", 100, LAYER_MODE_NORMAL)
pdb.gimp_drawable_fill(bg_layer, FILL_WHITE)
pdb.gimp_image_add_layer(current_image, bg_layer, 1)

We will also set the main background and foreground color that would be use in future instruction set.

pdb.gimp_context_set_foreground("#960acc")
pdb.gimp_context_set_background("#000000")

Create branding layer and fill the rectangular region with indigo.

branding_layer = pdb.gimp_layer_new(current_image, c_size, c_size, RGBA_IMAGE, "branding", 100, LAYER_MODE_NORMAL)
pdb.gimp_image_add_layer(current_image, branding_layer, 1)

pdb.gimp_selection_none(current_image)
pdb.gimp_image_select_rectangle(current_image, CHANNEL_OP_ADD, 0, 0, c_size, 260)
pdb.gimp_drawable_edit_fill(branding_layer, FILL_FOREGROUND)

Get poster image and resize its layer to fit canvas.

poster_layer = current_image.layers[0]
pdb.gimp_layer_add_alpha(poster_layer)
pdb.gimp_layer_resize_to_image_size(poster_layer)

Select non-alpha on poster layer and grow.

pdb.gimp_image_select_item(current_image, CHANNEL_OP_REPLACE, poster_layer)
pdb.gimp_selection_grow(current_image, 3)

Create a mask and fill it with the background color that we set.

mask = pdb.gimp_layer_create_mask(branding_layer, ADD_MASK_WHITE)
pdb.gimp_layer_add_mask(branding_layer, mask)
pdb.gimp_layer_set_edit_mask(branding_layer, 1)
pdb.gimp_drawable_edit_fill(mask, FILL_BACKGROUND)

Add text node with color it white.

pdb.gimp_context_set_foreground("#ffffff")
text_layer = pdb.gimp_text_fontname(current_image, None, 10.0, 10.0, "Psyche Digital", 0, 1, 24.0, PIXELS, "SF Compact Display Heavy")

We select the main layer and add a legacy drop shadow.

pdb.gimp_image_select_item(current_image, CHANNEL_OP_REPLACE, poster_layer)
pdb.script_fu_drop_shadow(current_image, poster_layer, 10.0, 10.0, 10.0, (0, 0, 0, 255), 80, 0)

Here is the full script code:

def convert_to_poster(n):
    current_image = gimp.image_list()[n]
    center_x = current_image.width / 2
    center_y = current_image.height / 2
    c_size = 600
    c_size_d = c_size / 2 
    
    pdb.gimp_image_resize(current_image, c_size, c_size, c_size_d - center_x, c_size_d - center_y)

    bg_layer = pdb.gimp_layer_new(current_image, c_size, c_size, RGBA_IMAGE, "bg", 100, LAYER_MODE_NORMAL)
    pdb.gimp_drawable_fill(bg_layer, FILL_WHITE)
    pdb.gimp_image_add_layer(current_image, bg_layer, 1)

    pdb.gimp_context_set_foreground("#960acc")
    pdb.gimp_context_set_background("#000000")
    
    branding_layer = pdb.gimp_layer_new(current_image, c_size, c_size, RGBA_IMAGE, "branding", 100, LAYER_MODE_NORMAL)
    pdb.gimp_image_add_layer(current_image, branding_layer, 1)

    pdb.gimp_selection_none(current_image)
    pdb.gimp_image_select_rectangle(current_image, CHANNEL_OP_ADD, 0, 0, c_size, 260)
    pdb.gimp_drawable_edit_fill(branding_layer, FILL_FOREGROUND)

    poster_layer = current_image.layers[0]
    pdb.gimp_layer_add_alpha(poster_layer)
    pdb.gimp_layer_resize_to_image_size(poster_layer)

    pdb.gimp_image_select_item(current_image, CHANNEL_OP_REPLACE, poster_layer)
    pdb.gimp_selection_grow(current_image, 3)

    mask = pdb.gimp_layer_create_mask(branding_layer, ADD_MASK_WHITE)
    pdb.gimp_layer_add_mask(branding_layer, mask)
    pdb.gimp_layer_set_edit_mask(branding_layer, 1)
    pdb.gimp_drawable_edit_fill(mask, FILL_BACKGROUND)

    pdb.gimp_context_set_foreground("#ffffff")
    text_layer = pdb.gimp_text_fontname(current_image, None, 10.0, 10.0, "Psyche Digital", 0, 1, 24.0, PIXELS, "SF Compact Display Heavy")

    pdb.gimp_image_select_item(current_image, CHANNEL_OP_REPLACE, poster_layer)
    pdb.script_fu_drop_shadow(current_image, poster_layer, 10.0, 10.0, 10.0, (0, 0, 0, 255), 80, 0)

Run this code in Gimp console or in Script-Fu console.

🥰😝😜😁😎

Leave a like and subscribe for more hacks, tips, and tricks.

For Her Smile (For Joane)

If she’s amazing, she won’t be easy. If she’s easy, she won’t be amazing. If she’s worth it, you won’t give up. If you give up, you’re not worthy. … Truth is, everybody is going to hurt you; you just gotta find the ones worth suffering for.

— Bob Marley.

I saw a lovely lady outside the door.
She always wave and smile at me.
When I am with her,
Her smile warms my very soul.
To see that gorgeous smile,
That always makes me fall.

As she gave me a puzzle,
We played it for a few
Joy whenever I finish the puzzle,
As I would see her smile once more

As I walk on the first level,
I bump my feet as I saw her upstairs.
Like an angel going down,
To save me from despair.
Hoping that day wouldn’t end.
As she’d smile and laugh with me.

If ever I were given a chance,
I’d protect that smile.
That smile that change,
My whole perspective in life.

When you think you have nothing left,
I swear to you, I’ll always be there beside you.
Thank you!

And always smile.
You probably don’t know,
But you make me and,
Everyone around you happy.