Skip to main content

· 2 min read
Lejen

Complete table showing the various information that the logging system can output:

%(name)sLogger's name
%(levelno)sLog level in digital form
%(levelname)sLog level in text form
%(pathname)sThe full path name of the module that called the log output function, may not have
%(filename)sThe file name of the module that called the log output function
%(module)sCall the module name of the log output function
%(funcName)sCall the function name of the log output function
%(lineno)dThe line of code where the statement that called the log output function is located
%(created)fCurrent time, expressed in floating point numbers representing the time of the UNIX standard
%(relativeCreated)dThe number of milliseconds since the Logger was created when the log information was output.
%(asctime)sThe current time in the form of a string. The default format is "2003-07-08 16:49:45,896". Behind the comma is the millisecond
%(thread)dThread ID. Maybe not
%(threadName)sThread name. Maybe not
%(process)dProcess ID. Maybe not
%(message)sUser output message

· 3 min read
Lejen

Interesting thoughts this morning when I am brewing my cup of coffee. When dumping my coffee grounds to the bin and I am thinking how much of coffee waste do we produce per as a coffee drinker.

How Much Coffee Waste Do We Produce?

According to the SCA, the “golden ratio” for brewing coffee is 55g per litre. This works out at just under 14g for a 250ml cup. While this might seem individually insignificant, billions of cups of coffee are consumed every single day.

Waste in Coffee Production

So why is coffee production so bad for the environment? The decomposition of coffee waste in landfills generates greenhouse gases and whenever these are dumped into landfills, they create methane which are more harmful than carbon dioxide

Reusing Coffee Grounds At Home

As what I have been doing, majority of used coffee is often thrown to the bin without being separated or treated. I did some googling and found some good ways of reusing coffee ground at home

  • Coffee grounds make great fertilizer because they contain several key nutrients required for plant growth. They can also help attract worms and decrease the concentrations of heavy metals in the soil.

  • Adding compost to your garden can significantly improve the health of your plants. Coffee grounds can help increase nutrient levels and decrease the greenhouse gas emissions of your compost.

  • Like other insects, fleas do not like coffee. Bathing your pet in used coffee grounds may help keep fleas at bay.

  • Coffee grounds can help absorb and eliminate odors from your refrigerator, gym bag or smelly shoes. Using them as a hand scrub can also help remove lingering smells from onion or garlic.

  • Coffee grounds can be used as an abrasive cleaner. They can help sanitize and remove buildup from sinks, cookware, grills and other surfaces around the house.

  • Coffee grounds can be repurposed into an exfoliating scrub for your face and body. They help remove dirt and dead skin cells and promote overall skin health.

  • Coffee grounds contain compounds that are toxic to many insects. You can use your coffee grounds to repel mosquitos, fruit flies, beetles and other pests.

  • Coffee grounds may help reduce the appearance of cellulite by breaking down fat deposits and increasing blood flow to the affected area.

  • Use coffee grounds to weigh down the ashes in your fireplace before cleaning. This makes for easier ash removal and less mess.

  • Coffee grounds can be repurposed into an exfoliating scrub for your face and body. They help remove dirt and dead skin cells and promote overall skin health.

  • Coffee grounds contain natural acids and enzymes that help tenderize meat and enhance its flavor.

  • You can use coffee grounds to buff out scratches on wooden furniture and darken them to match your existing finish.

  • Coffee grounds contain caffeine and antioxidants. When applied to the skin, they can help prevent aging and reduce the appearance of dark under-eye circles and puffiness.

  • Coffee grounds contain compounds that can raise blood cholesterol. Consuming small amounts on occasion is fine for most people, but they may be problematic if consumed in excess.

· One min read
Lejen

Vaper since Year 2015. Can't remember the hype of vaping few years back. Been using various kind of mods, box-mods, squonk mods. So far, the only still surviving is my Taifun - Scarab (Skarabäus) when I first bought in Paris. Together my favourite Pico RTA. Could be I am tired of chasing for the latest stuff out there, just like how we are chasing for gadgets and shit. Sticking with the same old mod and same old RTA.

Taifun - Scarab (Skarabäus)

The Taifun Skarabäus Pro is characterized by its relatively simple operation, which excludes the usual disadvantages of a mechanical switches such as arcing, carbon build up, and performance degradation over time. The benefit of the switch design in the Skarabäus Pro results in fast and instant power ramp up for strong hits and consistent performance over time.

Taifun - Scarab

Pico RTA

The Pico RTA by YellowKiss (The Vape) The Pico by YellowKiss (The Vape) in Korea, is an exclusive rebuildable tank atomizer that is designed for some of the most incredible flavour reproduction available from any tank on the market today, packaged in an incredibly small size!

pico

· One min read
Lejen

Recently I have been looking for something new to try on. How about baking a cake? Since the cake I like the most is cheesecake, google up and found this in Youtube. Gathered all the ingredient and baking utensils, honestly it's really not hard to make a cheesecake. I would suggest to give a try! Updates: I have been messing around with the same recipe, just giving a try on switching out the brands of cream cheese, percentages of sour cream and I am having fun!

The Best New York Cheesecake Recipe | Emojoie Cuisine

· One min read
Lejen

Not long ago, I have been introduced with Python.

Python language was not hard to understand but is kinda hard to write good codes with Python especially for a person like me who do not have good IT knowledge.

But thanks to the Internet, there are plenty of resources online that helped me in better understand the programming language.

As my job are more towards on process automation, what we need was a scheduler that enable us to make a schedule / trigger that's calls out routine to complete business task.

I am using Flask to fire up a python server, once the server is ready in local-host to receive request. Then, request can be submitted through REST method which can direct our flask app.route to call out python method and function that has been coded to do the job.