Posts

Showing posts from 2022

Turn-off the annoying new hover-UI for 'Watch Later' on YouTube

Image
First hiding the dislike count. Then turning off the old Watch Later button on the home screen . Seems like YouTube keeps making it harder for users to use it. Fortunately, there are browser extensions that can fix the first one. As for the second, there's actually a YouTube setting that will bring back the old functionality (turn off Inline playback ).

Expensive Customer Care On Citibank India

Image
Activating a new Citibank card is almost impossible without calling the bank. The website and app have no activation option, only blocking/unblocking ones. Using the card on ATM s for pin change etc doesn't help. The card doesn't work on POS devices. The only option left is to call the bank and get it activated by customer support. This works fine except that the support 1860 number is a very expensive call.  Even if you have free calling on your cell plan, this number gets charged about Rs 2-3 per minute . And those support calls can go on for a while...

Understanding Capitalism and Investing

Image
William Ackman: Everything You Need to Know About Finance and Investing in Under an Hour | Big Think Free to Choose: the Original 1980 TV Series The Ascent of Money

Big Tech Venture Cap Is A Scam

Image
Something I've long suspected.  "Venture Capital is a Ponzi Scheme!" Chamath on corruption in Big Tech  The Solution? Don't force it. TAOISM | The Philosophy Of Flow Jordan Peterson - Making Sacrifices For The Future Any true investment is a sacrifice, because one is foregoing some kind of present gratification for a future gain. The power of sacrifice that was often preached in the past was possibly based on this principle, that real investment was a sacrifice. But like everything else, it seems to have been misinterpreted over time. Jordan Peterson: Delay of Gratification as a Success Predictor Investment always involves delayed gratification. The reason many are not able to make the investments required to become financially free, is often the lack of will required to forego immediate gratification. “The successful among us delay gratification. The successful among us bargain with the future.” Jordan B. Peterson, 12 Rules for Life: An An

How Wings Create Lift - Bernoulli vs Newton

Image
  The Bernoulli Explanation - Another unnecessarily complicated and possibly wrong explanation taught in academia.  The Newtonian Explanation - A simple and intuitive explanation. An airflow study will probably show a net movement of air downwards behind the wing. The video above shows the NASA link, and speaks of the airflow direction change as well.

Hour Glass Buoyancy Problem

Image
      This is just very interesting physics. The moving sand in the initial stage has the same effect as the net mass moving downwards. So the hourglass doesn't start moving up until half the sand has moved down. From another perspective, the force of the falling sand counteracts the force of buoyancy in the initial stage. But as the volume of falling sand reduces, the force too reduces and the hourglass starts moving up. Quoting from the  American Journal of Physics 85, 98 (2017);       Weight of an hourglass—Theory and experiment in quantitative comparison   "A flowing hourglass changes its weight in the course of time because of the accelerated motion of its center of mass. While this insight is not new, it is frequently said that the effect is tiny and hardly measurable. Here, we present a simple experiment that allows the monitoring of weight as a function of time, and that shows that there are different stages of the weight variation. The experimental result is in quanti

Ritesh Agarwal Quotes

Image
"During my Thiel fellowship i was told not to trust two kind of people. The first one were consultants, and the second kind were Indians who have immigrated to the US and are staying there." "Life presents you with two opportunities or two options at all times. Not four like KBC. Just two. Either a risk or regret. Whenever life presents you with either of these opportunities, taking a risk is always better than regretting not taking that risk years from now. It is okay to take a risk versus being regretful of not doing what you wanted to do." "Until you give them an opportunity to earn your trust, they never will. At the same time, there is a risk. If somebody breaks your trust, people have broken my trust, people will find you gullible and sometimes take advantage of you. I thought, if i did not trust people there was zero percent chance I'd be successful. But if I did trust people, there was at least 50% chance I'd be successful. I'd tak

Entrepreneurs Are Artists

Image
Jordan Peterson Defines True Entrepreneurship Entrepreneur are Artists. Robert Kiyosaki 2019 - The Speech That Broke The Internet!!! KEEP THEM POOR! Entrepreneurs work for free. "Integrity" || Warren Buffett || "We look for three things when we hire people. We look for intelligence, we look for initiative or energy, and we look for integrity. And if they don’t have the latter, the first two will kill you, because if you’re going to get someone without integrity, you want them lazy and dumb." Joseph Campbell — Jung and the Right and Left-hand Paths Comments from the videos given below. "Campbell looks at the two ways that myths deal with this: The Right-hand Path, staying within the Persona System; and the Left-hand Path, the dangerous, individual path of breaking out of society’s rules and expectations." "It can’t be emphasized enough that the ‘left hand path’ spoken of here is only barely survivable if you can have respect for

Precession and Nutation

Image

The Brachistochrone Problem

Image
 

Zomato - How To Ruin A Great App

Image
From: Great Food Guide Used to be an avid Zomato user. Had reviews, followers, collections, the whole shebang. Without even trying really!  Zomato was the perfect place for researching and reviewing good places to eat at. The ultimate food guide. Sounds great, right? Except now you can do almost none of the things that made Zomato great to begin with. Warning Signs... It probably started with the push to use the app. The site kept pushing you to install the app when you were trying to look up restaurants. But Zomato needs access to neither my location nor my camera to be a food guide. So, not installing the app on my phone. Then the ratings started becoming suspect. Barely average places had thousands of ratings with aggregates of 4.9 etc. Zomato said it was vetting them, but c'mon! Let's get real. Next could no longer create collections, or even modify one's existing collections. May need to install the app for that. But again, that ain't gonna happen for rea

Top Restaurants and Malls in Bangalore

Image
Late-Night Places The Late-Night Restaurants collection seems to be gone. There also seems to be no way to access, edit or delete personal collections anymore. The Bengaluru Brasserie - Hyatt Centric MG Road seems to be one of last few decent 24 hour places, apart from the airport. Legendary Restaurants Zomato Legendary Places Used to be much longer. The below places used to be on that list too. Near MG Road Metro Koshys St Marks Road MTR 1924 St Marks Road Konark Vegetarian Restaurant Residency Road Indian Coffee House Church Street Near National College Metro Brahmins Coffee Bar Basavanagudi Vidyarthi Bhavan Basavanagudi V B Bakery Basavanagudi (For Dumroot parcels And KBC snacks) Non-Local Cuisine Gramin Koramangala Bangalore (Try the Tandoori Arbi ) Kapoors Cafe Jayanagar Bangalore (Multiple locations) Anand Sweets And Savouries Jayanagar (Multiple locations) Samaroh Lavelle Road (Closed! Please reopen) Some Good High-End P

Buoyancy, Relativity and Gravity

Image
Personal theory in comment.

Errors in Google's Rich Results Examples and Documentation

Image
1. The example given for  Subscription and paywalled content says "1 valid item with warnings detected" when tested on Google's own Testing Tool . When the @type is changed from "NewsArticle" to "WebPage" , which is one of the Supported types , the Testing Tool says "No rich results detected" .  2. The example given for Fact Check , when tested similarly, says "2 valid items detected: All have warnings" . The warning is Missing Field (firstAppearance) . Update (~May 2022) The documentation for appearance and firstAppearance under Fact Check says URL or CreativeWork . Fact Check s with URL s for appearance and firstAppearance, that have been showing as valid on the Testing Tool for months, are now showing Structured Data Warnings on Search Console . They continue to show as valid on the Testing Tool . Update (Jun 2022) Fact Check s with URL s for appearance and firstAppearance , which used to show no errors

Search Drupal Nodes and Comments with Code

<? $revisions = db_select('field_revision_body', 'r')     ->distinct()     ->fields('r', array('entity_id'))     ->condition('r.body_value', '%' . db_like('www') . '%', 'LIKE')     ->execute(); // Avoiding unions for short queries foreach ($revisions as $revision) { $nodes = db_select('node', 'n')     ->fields('n', array('uid'))     ->condition('nid', $revision->entity_id,'=')     ->execute(); foreach ($nodes as $node) if ($node->uid != 1)     echo '<a target="_blank" href="/node/'.$revision->entity_id.'">node '.$revision->entity_id.'</a><br>'; } ?> <!-- The above node search code will also return nodes where previous versions have the string Clean-up revisions first if necessary.  Code for searching through comments given below -->  <? // Identical code from

Necessary But Not Sufficient

A Sanity Factor or Sanity Check is something that is Necessary But Not Sufficient for something else. For example, money for happiness. After a certain point, it doesn't really help and will even harm. But it is required up to a point. It's surprising that this concept isn't more formally defined, since it's a very basic concept in a lot of situations. There's a book with the title - Necessary But Not Sufficient . But it's not clear if it's actually about this concept. Sanity Checks appear to be a programming concept . Perhaps that's why it's not more commonly defined. It's basically a check to see if the essentials are in place. Here's a great example how this is a key missing conceptual framework, when considering the correlation of IQ against various outcomes. Quoted: "It is quite plausible that one can obtain a university degree through conscientiousness despite modest cognitive aptitudes. There are many such ind

Change Transient Hostname

There are three 3 types of hostnames: static pretty transient   Check what your current hostname is: hostnamectl The transient hostname comes from the reverse DNS. To change: sudo reboot This should fix the name in Undelivered Mails : "This is the mail system at host xxx"

PayPal Checkout Setup

PayPal's original checkout customization can be hard to find because of the two different sets of UI - new and old. Here's the link to the original checkout setup page . The way to get there through the new UI is using the PayPal buttons link.

Drupal Commerce Update License

 <?   // update commerce_license set expires = expires + 15552000 where license_id =  2050; $license_id = 0; $expires = 0; $incr_ts = 0; if (isset( $_GET['license_id'])) $license_id = $_GET['license_id']; if (isset( $_GET['expires'])) $expires = $_GET['expires']; if (isset( $_GET['incr_ts'])) $incr_ts = $_GET['incr_ts']; $num_updated = 0; // To prevent accidental reruns if (($license_id > 0) && ($expires > 0)) {     $num_updated = db_update('commerce_license')     ->expression('expires', 'expires + :incr_ts', array(':incr_ts' => $incr_ts))     ->condition('license_id', $license_id)     ->condition('expires', $expires)     ->execute(); } else if (($license_id > 0) && ($expires == 0)) { $expires = db_select("commerce_license", "cl")   ->fields("cl", array("expires"))     ->condition('license_id', $

Drupal Delete Spam Accounts

 <? // Since when did mysql start supporting subqueries $result = db_query('select uid from users where uid not in ( 7077,8842,8304,8558,3975,5756 ) and uid not in ( select distinct uid from node ) and uid not in ( select distinct uid from comment ) and uid not in ( select distinct uid from users where picture > 0 ) and uid not in ( select distinct uid from profile_value ) and uid not in ( select distinct uid from commerce_order ) and uid not in ( select distinct entity_id from field_data_field_stock_watchlist )'); foreach ($result as $record)    if ($record->uid > 6) user_delete($record->uid); ?>

Archive

Show more