Published on March 12, 2025
To create a new session in tmux
tmux new -s sessionname
Detach from the session
crtl + b and then press d
Then we can go back to it (attach) to it using below command
tmux attach-session -t session...
Published on March 04, 2025
I have been working remotely for more than 5 years now.
My work schedule had changed throughout the years.
Currently it’s split into three focused chunk of time.
First one right after my mornin...
Published on January 17, 2025
Sorry that's all I can share.
(being a minimalist, you know... get it?)
Joke aside, I have been having this urge to simplify lot of things in my life.
I just don't want to think or worry about ...
Published on January 07, 2025
Personal
Health is my #1 priority this year, both mental and physical:
• Go out for a walk and be outside during sunrise and sunset
• No laptop and minimal phone time after sunset
• Slowly reach ...
Published on December 31, 2024
Wishing you a wonderful year ahead!
I'll share a great article "What if you tried hard?" I read from Aaron Francis to kick start new year.
Here it is: https://aaronfrancis.com/2024/what-if-you-tr...
Published on December 18, 2024
rule #1: prioritise customer happiness.
rule #2: always make profit.
rule #0: quality comes first.
Published on December 17, 2024
I was planning to spend some time on my side projects, but I want to be away from the computer and mobile and chill.
I have been reading Company of One. I’ll complete it and then go for a road t...
Published on November 20, 2024
# Check if cache exists
Rails.cache.exist?('latest_posts')
# Read the current cached value
Rails.cache.read('latest_posts')
# Delete the cache if needed
Rails.cache.delete('latest_posts')
Published on November 13, 2024
ActiveRecord::Base.connection_db_config.name
Car.connection_db_config.name
Vehicle.connection_db_config.name
This is useful in scenarios where we have models connecting to different database and wa...
Published on October 25, 2024
I hate how 200 feels well over my budget but 199 within my budget.
Noticed this when I started a trial for 199 but then realised it’s 200.
I feel dumb.
Published on October 07, 2024
Being nice to others is not a bug; it's a feature and a feature we all need to aspire to live by.
That doesn't mean we can't be truthful anymore. That's the argument I often hear. There's a way to...
Published on October 06, 2024
Doing "flutter pub deps" shows all dependencies like this:
["flutter pub deps" to list all dependencies used in a nice format.]
Published on September 17, 2024
SELECT
(blocks_done::numeric / blocks_total::numeric) * 100 AS percentage_done
FROM
pg_stat_progress_create_index;
Got this from Stackoverflow: https://stackoverflow.com/a/78640729
Y...
Published on July 16, 2024
I started working on the blogging platform One Simple Blog thinking it should be simple to build a blogging platform.
It’s a well established market and doesn’t have to educate customers on what ...
Published on July 10, 2024
Here it is: start working on that damn thing!
Published on June 16, 2024
There is something unfair in this world. It’s the money we make.
People make different amount even if they basically do same work, more or less.
Magic happens when we:
1. Understand the game of...
Published on June 01, 2024
I have this reminder "What are you going to regret?" set for every 3 months.
[Screenshot 2024-06-01 at 10.38.09 AM.png]
It's been sitting there for two days and I don't know what I'll regret.
Whic...
Published on April 16, 2024
How many views is your personal/product blog getting on a monthly basis?
Is it in range of 1-5k, 5-10k or more?
I’m trying to figure out the pricing for onesimpleblog.com
Right now it’s at $20/y...
Published on April 16, 2024
Wake up at 4. You’ll see a whole new world open up for you.
Published on April 06, 2024
I got A+ for all subject except the native language (malayalam - A) in 10th.
From there it was downward hill in terms of academic performance.
At the same time, that’s when I got into the game ...
Published on March 26, 2024
Enjoy your life. Most of the things you worry about doesn’t really matter.
Published on March 09, 2024
I joke with friends that I don’t trust them nor anybody.
but on a serious note,
- why does trust matter?
- what does trust mean?
- do you trust yourself? if yes, what do you trust yourself w...
Published on March 05, 2024
Don’t follow your dreams. It’s just dreams.
I don’t even understand why use the word dream for something we want to do, achieve or even yearn for.
Dream is what we experience during certain sta...
Published on March 04, 2024
🎉 Product updates & 👀Sneak peeks
Nope, there isn’t anything. That’s one of the reason this Feb edition is too late.
I wanted to work on a “About page” feature where we can add a “About page” fo...
Published on March 01, 2024
Streaming
class MyController < ActionController::Base
include ActionController::Live
def stream
response.headers['Content-Type'] = 'text/event-stream'
100.times {
response.stre...
Published on February 14, 2024
Encountered <%== pagy_info(@pagy) %> today and was wondering that the double equal (==) mean
Here is what I found:
• <% %>: Executes the Ruby code within the brackets but does not print the result...
Published on February 06, 2024
Here is the docs for the same:
[`Time.current.all_month` to get the whole range in Rails]
https://api.rubyonrails.org/classes/DateAndTime/Calculations.html#method-i-all_month
Published on February 01, 2024
"be", "eq" are same, and checks for the value of the object
"eql", "equal" are same, and checks for object_id of the object
Here is where I learend this from:
https://blog.f5.works/rails-the-diff...
Published on January 30, 2024
Hey,
I started working on a blogging platform recently. One Simple Blog https://onesimpleblog.com/
Goal is to pick an idea/market that's already figured out by others and make a small dent in tha...
Published on January 26, 2024
irb(main):001> ["a", "b"] | ["b", "c"]
=> ["a", "b", "c"]
Published on January 25, 2024
I was trying to change a column default
def change
change_column_default :blog, :language, "en_US"
end
and it gave this error when I try to rollback the migration
Caused by:
ActiveRecord::Irrev...
Published on January 21, 2024
Someone treated you badly.
You got hurt.
You felt it’s not acceptable.
— TIME FLIES —
You got a chance to treat them the same way.
You treat them the same way to “teach a lesson”
That’s a...
Published on January 16, 2024
“SQL unaccent is a PostgreSQL extension that removes accents (diacritic signs) from lexemes. It is a filtering dictionary that can be used to improve user experience and implement search in a user-...
Published on January 16, 2024
[`Model.none` returns a chainable relation with zero records in Rails]
Source: https://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html#method-i-none
Published on December 21, 2023
I did not write in 2023, well, at least not here.
That does not surprise me, as my first written piece back in 2021 was titled I don't write. How many have I written each year since then? Let's se...
Published on April 03, 2023
Here is the link to the tweet by @nateberkopec: https://twitter.com/nateberkopec/status/1642965409165877268
Published on March 11, 2023
Although I knew about hoisting in javascript, I always explicitly declare nil while writing ruby and was under the impression it will give undefined otherwise.
I might be still continue declaring ...
Published on October 09, 2022
“Returns the number of mandatory arguments.
If the block is declared to take no arguments, returns 0.
If the block is known to take exactly n arguments, returns n.
If the block has optional argumen...
Published on September 14, 2022
https://github.com/hashrocket/decent_exposure
[decent_exposure gem]
Published on May 16, 2022
https://devcenter.heroku.com/articles/heroku-postgres-follower-databases
Published on April 10, 2022
[Flutter (iOS): No transparent images allowed in assets]
Published on March 07, 2022
defaults write com.apple.screencapture location {location here}
e.g,
defaults write com.apple.screencapture location /Users/rinas/Desktop/Screenshots
Published on March 01, 2022
heroku run rails c -a APP_NAME
Published on February 11, 2022
Life sucks.
Right from the start.
May be right after childhood.
Lucky if we happened to be around parents.
Many born with disease or no parents around.
There is nothing we can do about.
What...
Published on February 06, 2022
Since it gets executed, we need to add `return`
redirect_to url and return
Here is the issue which talks about this: https://github.com/rails/rails/issues/26363
Published on January 26, 2022
I had used counter_cache in the past but still had to look it up :D
Here is the SO answer that helped: https://stackoverflow.com/a/16996960/3098242
[using counter_cache in rails to save associatio...
Published on January 23, 2022
Update:
There is a better way to do this as discussed here in Twitter
Page.where.not(custom_domain: nil).pluck(:custom_domain)
---------------------------------------
Page.pluck(:custom_domain)[s...
Published on January 23, 2022
This comes from the maker of HIGHSCORE.domains where you can show off how many domains you got. So please don't take it lightly 😁
“other me saying in my head why the hell are you including the we...
Published on January 21, 2022
rvm --default use 3.1.0
Published on January 21, 2022
.turbo-progress-bar {
background-color: black;
}
Published on January 19, 2022
https://edgeguides.rubyonrails.org/active_storage_overview.html#s3-service-amazon-s3-and-s3-compatible-apis
[Screenshot of policy in AWS]
Published on January 18, 2022
We can change the colour of log in console like this:
console.log('%c hey red text', 'color: red')
console.log('%c hey green text', 'color: green')
[Screenshot of developer console]
Published on October 10, 2021
It's been almost a year since I started my indie hacking journey and here are some points that could help you fastrack your first year if you are just starting out.
• build one core feature that c...
Published on October 10, 2021
1st version of No Sugar Today was built and launched in less than a day and I was surprised by the reactions got in Product Hunt. I used to track how many days I have gone without sugar in Habitify...
Published on August 19, 2021
I actually enjoy doing it. Helps me give a different perspective but the trick is to not do everything at the same time 😎
🧑💻 I mostly code only one project a week
• This week I'm coding HiFive
•...
Published on July 16, 2021
Marketing is definitely something everyone needs to learn for sure.
Not in the sense of learning how to send cold emails and use all the fancy tools 😅
but to actually learn how to convey the me...
Published on July 16, 2021
I often find myself running into registering domain names and start yet another project.
This isn't practical anymore. Now I have two major side projects and any new project I start won't get enou...
Published on June 30, 2021
My last post was about building side projects and I did it. Yes, built and launched a project. It's called HIGHSCORE.domains
HIGHSCORE.domains is launched as a fun leaderboard to find out who owns...
Published on April 05, 2021
[Screenshot of my WIP profile (2021-04-05)]
I'm a big-time procrastinator and joining WIP helped a lot.
Usually, I start with building something and go down the road of tweaking the idea and keep ...
Published on March 23, 2021
“Originally posted in https://world.hey.com/rinas/i-don-t-write-dc86f911”
Hey World 👋
I don't write much and yet here I am writing to the world. The few words I scribble on Twitter are the quot...