Blog

  • How to print triangle shape asterisk using for loop?

    How to print triangle shape asterisk using for loop?

    This is my first exercises on computer programming 2. To triangle shape asterisk or echo out triangle asterisk in a for loop sequence.

    ----*
    ---***
    --*****
    -*******
    *********

    Analyzing the output?

    It could be 5 line break and so on
    The number sequence of the asterisk is x = x+2

    Here is the code for the number sequence.

    $s=""; // initial variable
    $b=9; // base number of the triangle
    // execute loop if true
    for($i=1;$i< =$b;$i+=2){
    // make a line break
    $s.=$i."
    ";
    }
    echo $s;

    The output number sequences we get from the for loop

    1
    3
    5
    7
    9

    We already got the number of asterisk on each row.
    Now we can print the asterisk accordingly.

    $s=""; // initial variable
    $b=9; // base number of the triangle
    // execute loop if true
    for($i=1;$i< =$b;$i+=2){
    // store the string value of $s while the asterisk count is true
    for($j=0;$j<$i;$j++){
    $s .="*";
    }
    // make a line break
    $s.=$i."
    ";
    }
    echo $s;

    The output of triangle asterisk using for loop.

    *
    ***
    *****
    *******
    *********

    We add dash to indent the asterisk to center for the final code.

    $s=""; // initial variable
    $b=9; // base number of the triangle
    // execute loop if true
    for($i=1;$i< =$b;$i+=2){
    // store and add dash on the string value of $s while it is true
    // or $k is less than $b-$i
    for ($k=0;$k<($b-$i); $k+=2){
    $s .="-";
    }
    // store the string value of $s while the asterisk count is true
    // or $j less than $i
    for($j=0;$j<$i;$j++){
    $s .="*";
    }
    // make a line break
    $s.=$i."
    ";
    }
    echo $s;

    The output of triangle asterisk using for loop with indention.

    ----*
    ---***
    --*****
    -*******
    *********
  • Beauty Fair at the BDJ Box Beauty Boot camp!

    Beauty Fair at the BDJ Box Beauty Boot camp!

    A week before! I thought I was registering for a giveaway contest but it was a pre-registration for the (Beauty Fair) BDJ Box Beauty Bootcamp. So I feel like a winner when a congratulations notice arrived on my inbox. I was hesitant to go since the invitations are for bellas, but my interest to get the freebies is very much alive. I was thinking of passing the gift to someone I know who love beauty products, but I feel like I want to use it now for personal grooming. I love the discount and other free items on the Bootcamp. I wish that I could stay longer but I had a scheduled movie to watch.

    Thanks for the awesome selfies with new faces! I wish to know them all and make not strangers.

    LadyAnneLadys Motherhood Journey
    Pria Amor
    Angel Alberto
    Angel

    My observation for the Beauty Fair crowd?

    I don’t know if I am the only male registered participant because I have not found any men registered participant before I went out of the Bootcamp.

    PS: Independence Day: Resurgence 2016 Movie

    Reaching out friends and new friends is much exciting than having a new friend in social media. It is really awesome.

  • What makes me happy becomes my reality.

    What makes me happy becomes my reality.

    What makes me happy becomes my reality.

    Sometimes we come into a person’s life not to make them love us but to let them feel that they’re so much worth loving for.

    Sometimes we come into a person's life not to make them love us but to let them feel that they're so much worth loving for.
    Sometimes we come into a person’s life not to make them love us but to let them feel that they’re so much worth loving for.

    I had let go! That was the solution I did over and over again. It didn’t work out on me until I decided to love you more. Now I am free and I can overcome my emotions with love.

    I had let go of pain and suffering but it is always coming back. Memories can still hurt and leave you hopeless. I decided to love you more and accept the pain until I understand and tolerate. I put the weight of my suffering to my shoulder until it became part of my life. I love you more and I did manage to hold on. Now I can endure pain and reject suffering.

    I had let go of the dream we planned but it did not fade. I can have a new mindset and see things differently to make some changes. Dreaming without you are still a dream in the absent of you. It doesn’t make sense because the story and visions are made with the shadows of you. I will love you more and my dream goes on even without you. Now I can live whichever dream ever accomplished.

    I had let go of your promises but it makes me feel guilty and weak. I believe in every word you said until it became the opposite. You’ve always been my inspiration and motivation. I will love you more because my commitment is not like a broken promise. Now I can stay in love whatever it takes without guilt.

    I had let go of the past but I cannot forget. Our history was made but I can’t put an end to it. I will love you more so that I don’t need to forget even if I have to move on. Now I can share our story that love is a choice.

    I had let go of our friendship since you start to ignore me like the wind that you can’t see. You’ve always been the best companion where ever we go. Together I almost forget the rest of the world and stay happy with you. I will love you more so that one day if you need a friend, I’ll be just like the wind that you can feel and breath.

    I had let go of everything about you but then I love you more. I guest letting go is just an illusion and loving you more is a magic. I don’t know which is the reality between magic and illusions? What makes me happy becomes my reality.

  • Baguio Tour 2016 – Going Where The Wind Blows

    Baguio Tour 2016 – Going Where The Wind Blows

    I had a very good experience during our travel tour at Baguio city. I had never planned it but I am glad to joined with my brother with his family. I am an extra person going where the wind blows.

    Going there was easy without traffic along the way and our first photo together at the Lions Head. They said that you had never been to Baguio if you don’t have a photo of the Lions Head. I been there few times and taking photo is not necessary because it dark on early morning or late afternoon. And this time is perfect for taking photo shoot.

    Baguio City Lions Head Kennon Road

    We had a good lunch at Don Henrico’s SM Baguio for our next stop. I enjoy the mozzarella stick and chicken.

    Don Henrico's SM Baguio

    We stayed at Pines View Hotel for three days and two nights. The place is very good to stay. The free breakfast meal is very good too. I can say that I am comfortable with Pines View Hotel.

    Our first city-walk is going to Burnham Park. The main attraction of the park is the boat ride at the lake.

    We walked along session road. I’ve always been walking at Session Road from my entire past visit.

    We joined the crowd of the market looking for some scarp and other souvenirs and passed by Rizal Park while going to Cafe by the Ruins for our dinner.

    cafe by the ruins Baguio City Top Restaurant

    Cafe by the Ruins is one of the top ten restaurants to check in Baguio. The ambiance is nice at night with romantic candlelight.

    Back at the Pines View Hotel, I love the night it was as cold as my heart, but I was happy.

    We rent a van service going to Baguio tourist spots. It is very useful because they already know how to get there and very time efficient.

    • Church Bell
    • Strawberry Farm
    • Tam-Awan Village
    • 300+ stair steps of Our Lady of Lourdes
    • The Ketchup Community: Green Pepper
    • Mines View
    • Good Shepherded
    • The Mansion
    • Baguio Botanic Garden
    • Passing by Camp John Hay
    • View Deck of Cannon Road

    Another one of the top ten restaurant in Baguio is Good Taste, and it about 3 minutes walk for Pines View Hotel. We had a good dinner after our day tour has done. Good Taste is well know for its cheaper value and bigger servings.

    Another cold night for me, and my heart said that you really need someone to be with to make you warm. I replied: It doesn’t matter if your feel is warm or cold, what important is you can be happy. The cold night begins and I was happy doing my job until I fall asleep.

    Last day of Baguio tour!

    We will stop by at the Dinosaur Island along the way going to Manila.

    We had lunchtime at the NLEX Caltex gas station and another fun animal feeding at mini Zoo.

    We had a very good experience during our Baguio Tour. Thanks so much for having me with you kuya Mon and Family.

  • I am blessed to have a happy heart

    I am blessed to have a happy heart

    My first cry was amazing and I believed that I brought joy and happiness to the world especially to my Nanay. I am not conscious and aware (as a new born) but I know now that my happiness was a pure blessing. I am so blessed.

    Blessed: I think I had enough

    I wanted to discover how happy I was back then; how did I share my happiness with my mom and to others who cares to me so much. Can you imagine the day when you were in your mother’s arms and close to her heart? She protects you from any harm and gave you so much time and attention. I can say it was unconditional love, so pure and so kind. I don’t know how much love I need but I think I had enough.

    Sometimes I got pity. I was emotionally hurt and feeling down. I wanted something that I couldn’t have. How much longer should I endure this pain while making myself happy? I asked myself how much longer do I have to cry; is it until tomorrow’s light? I wasn’t afraid to lose this happiness taken away by someone I let go. I cried again and it was amazing. I believe that I still have my heart that can be happy from within. I really missed my mother’s hugs and her caring instinct from where I felt happiness from within. I missed my mom so much.

    For anyone who asked me about their tears, fears and burdens, I had shared my thoughts and advice to my other blogs too.[Paano Maka Move On] I am wishing for you to find your happiness from within and remember that you are also blessed with a happy heart.

    Happy Mother’s Day Nanay! Thank you for being my inspirations and helping me to have this kind of happy heart. It’s all about the love that you had with us.

  • Love and Desire of the Broken Heart

    Love and Desire of the Broken Heart

    What kind of words you want to hear?
    My heart to speak into your ears.
    How did it hurt you even more?
    When someone leaves out of your door.

    Your confuse mind and heart so cold
    You want this burden to be told
    My love for you will be remain
    uncertain love to be sustain

    If only I can steal your pain
    would I can also feel the same?
    When someone precious let you go
    had never seen your heart of gold

    Life’s goes on, times are moving on
    Love and desire of heart unknown.
    You need a light, you need a home
    is where happiness you can own

    I am happy to be with you

    Love and Desire of the Broken Heart Poem in the Making

    I was stalking to my friend and find the post “Bakit ang Sakit.” I had that feeling too and I wish I can do something about it. I open up chat conversation with her made this poem. My intention was to help and ease her worries, but it didn’t turn good after all.

    Here is my opinion: She only sees what she had lose and never open her eyes to see the aid and replacement. She is on the stage of holding on and I want to see how long it will last when she let go.

    The poem was made for her

  • Live with the King Huawei Nexus 6P

    Live with the King Huawei Nexus 6P

    I want to share what I want in my mobile smart phone like what Huawei Nexus 6P is all about.

    When it comes to mobile smart phone, I am very comfortable with octa-core combined with good 3GB RAM and 32 or 64 ROM. This makes the phone perform at its best.

    Live with the King Huawei

    Camera and video entertain me so much that is why I want to “Live with the King” this kind of phone to be with me all the time. It is nice to share the good photo and video taken by 12.3MP rear camera (1.55µm) and 8MP front camera (1.4µm) on your social media accounts.  This makes me more social and cool.

    Smart phone is also my personal secretary and I am glad to have a phone who has good apps in your hand like calendar, browser, email, and maps. This makes Android App is very helpful tools on the go.

    When it comes to sounds. I like it very noisy and sharp speaker for my alarm, I also like it more on music and phone call. I think it sounds good on Dual specified front speaker .

    When you are always on the go, it’s nice to have fast charging phone like this phone which has its USB type C Charging port. It has 3450 mAh battery anyway that is enough with my whole day usage.

    I think the size is good enough for me. It found it good to my lifestyle and work. Design and style are good too.

    What I really want most is its LTE Connectivity. Everybody loves good internet connections.


    [av_gallery ids=’5731,5730,5729,5728,5727,5722,5723,5724,5725,5726,5721,5720′ style=’big_thumb’ preview_size=’portfolio’ crop_big_preview_thumbnail=’avia-gallery-big-crop-thumb’ thumb_size=’portfolio’ columns=’5′ imagelink=’lightbox’ lazyload=’avia_lazyload’ av_uid=’av-3avyhj’]


    Visit the link to know more about Huawei Nexus 6P this will give you a glance of Live with the King

  • When You Become My Candle Light

    When You Become My Candle Light

    I’ve been long walking at the dark
    Then your light shines into my heart
    I started to fall in love
    with a graceful path in my eyes

    I’m happy to follow your ways
    Never get lost in your trace
    But all was just an illusion?
    I want to see in my vision

    I can hug your warm lovely light
    I stare and let it through my heart
    But that was when were young before
    I wish I could love so much more

    You are still the light that I knew
    The one I kept but I let go
    The light within will always be
    Making night romantically

    So sad to feel distant apart
    Hope you can remember my heart
    I want to touch flame of the night
    Burning desire to keep your light.

    The meaning of when you become my candle light

    It was a heartbreaking moment when I invited someone to be with me and I knew that the answer was already no. The poem was created having this kind of feelings. I was in the dark but I did not mean I am not happy, dark was a symbol of my close heart and I mean to see the light as opening for the relationship. I became a follower of you  by tracing steps and every activity. I almost had seen the visions of me and you at the wedding, but it was just an illusion and false hope. I remember how it was before and now things had changed. Change? You are still the girl I knew, but I don’t know about you now. What I can see is that you become the better person and I can’t be with you now. All I can do is to watch and get some updates about you. I did not mean to stalk over you, what I am doing is keeping my desire to love you even if we are apart.

    PS: I don’t want to post this poem on my blog but rather I wanted it to be published elsewhere. I did post in anyway and explain how it was made. I was first published by TransitMagazine

    PS: The Model Lorgil Maquiling has nothing to do with the poem! But I the candle light and the bokeh.

    Lorgil Maquiling
    Lorgil Maquiling