Skip to main content

Posts

How to get solution when you’re stuck

  How to get solution when you’re stuck ask people when? people is available. always ask your tablemate first.   first question should always be ‘nak tanya boleh tak?’ if you’re stuck for more than 30mins, try to ask even when people are busy. simple (yes or no answer/where is this?) specific to the environment (ask about smap/urusbisnes) no data online (explain about one_model, one_helper) how? provide context - what task you are doing, what error you got, who you dont like in the office show proof of your findings/solution search online when? people visibly busy answer available online. eg: issues with CI3/PHP/MySQL how? copy paste the entire error message (not the whole text, just the message). usually this works for old systems like CI3 where there are lots of forums discussing the errors search based on keywords. y say many when few do tricks? eg: ’ios notch in app browser issue’ add forum names at the and of search text. eg: ios notch in app browser issue reddit/stackove...

Setup existing IONIC project in local

Setup existing IONIC project in local  Steps: clone git repo install ionic -  npm install -g @ionic/cli masuk folder repo project install npm dependencies -  npm install run ionic project -  ionic serve buka android studio / xcode -  ionic cap open $var  - $var = ‘android’ atau ‘ios’. ada dua je option, replace $var dgn dua option tu sync changes vscode & dkt android studio / xcode -  ionic cap sync good luck Common issues: dependency conflict check https://www.npmpeer.dev/ utk tengok version yg compatible try naikkan/turunkan version dependency yg keluar dkt error. tembak je sampai hilang error g radle issue try upgrade gradle. kalau tak boleh, try remove folder android & build semula e rror cocoapod make sure install xcode make sure install cocoapod error java  home not found utk mac, buka ~/.zshrc & masukkan chang es dkt VSC tak masuk android studio / xcode try ionic cap sync try quit & buka semula cordo va.variables.gradle no...

How to handle big issue on live server that already broke a lot of user data

How to handle big issue on live server that already broke a lot of user data Have you ever caused a big problem on production and panicked, not knowing what to do to remedy the shitty situation you've just caused? Well, I did. So here's what I've found. 1. Find what caused the issue Its probably the most recent changes you've just pushed. If not, then try to remember whatever code you're ever had doubt in, it's usually one of these. If you cant find it, tough luck. Lets move to the next step. Don't spend too much time on finding the rootcause. 2. Stop the function that caused the issue (eg:cron that cancels invoice) In my case, it was a cronjob. Easy fix, just disable the cronjob on both the server and in the codebase. If it was a crucial add/update process, then just disable it in the code, returning an alert 'something went wrong, we're currently fixing it' should suffice. Just make sure to apologize to your support person later. 3. Update curr...

Chore:self-improvement-2

This is part 2 of my series of self-improvement posts. In this post, we will dive into the concept of productivity. What the heck is productivity? For me, its the feeling of accomplishment when doing an activity. Some activity can be extremely beneficial and could help you in the long run, while some are merely 'time-killer'. Spending time: working/side projects in nature working out with family & friends doing hobbies sleeping Not productive: doom scrolling consuming brainrot contents over sleeping All of the listed above is correct. as long as it can be beneficial in some form. You define what productivity is. don’t let anyone judge you. Here's some justifications on the activities listed above: working = skills for career in nature = mental & physical health working out = physical health with family & friends = relationship & mental health doing hobbies = self reward & mental health sleeping = physical & mental health You might argue that social m...

Chore:self-improvement

Basically my take on how to slowly fix your life, from the smallest change possible. Result not guaranteed. Motivation sold separately. Understand what a good life is: a good year a good month a good week a good day Start small. You are born small, but now look at how much you’ve grown. ;D Focus on yourself.   Look at the mirror, you can be prettier. Clean environment = clean thoughts. Better looks, better self-esteem. Maybe a you need a new haircut or a clean shave. The internet sucks, get off it. While there are positivity, its just better to leave it for a moment and gather your thoughts. Touch grass, literally. It’s been scientifically proven that greeneries can boost your mood. Balance things out. Prioritise these properly & carefully: Career Relationships Fun Finance How to execute plans Set goals. Cant achieve them? Lower your standards. Set a floor goal and a ceiling goal. Still cant achieve them? Have you tried breaking them into smaller tiny goals instead of one big o...