IPv6 on WSL2

Create .wslconfig in user home directory (%userprofile%) and add following. [wsl2] networkingMode=mirrored If file already exists, update it. Each network interface will be ethx $ ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 00:00:00:00:00:01 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000 link/ether 00:00:00:00:00:02 brd ff:ff:ff:ff:ff:ff 4: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:00:00:00:00:03 brd ff:ff:ff:ff:ff:ff inet 192....

डिसेंबर 29, 2023 · 1 min · 172 words · शंतनू

वात्रटिका

तो तिच्या वर चढला, म्हणून तुम्ही का हो त्याला नडला, शिडी त्याचीच, चढणारही तोच, तुम्हाला का हो लागली त्याची बोच ? त्याने तिची नाडी ओढली, तुम्हाला त्याची का हो पडली, चड्डी त्याचीच, ओढणार ही तोच, तुम्हाला का हो लागली त्याची बोच ? त्याने तिचे दोन्ही दाबले, तोंड तुमचे का हो आंबले, साईकल त्याची, ब्रेकही दाबणार तोच, तुम्हाला का हो लागली त्याची बोच ? त्याने तिला तेल लावून रगडली, तुमची तब्बेत का हो बिघडली, मानही त्याचीच, रगडणार ही तोच, तुम्हाला का हो लागली त्याची बोच ?...

मे 20, 2023 · 1 min · 126 words · शंतनू

Python Programming using Unicode

Code काहीनाही = None लिहा = print class सूर: def __init__(स्वतः, नाव): स्वतः.नाव = नाव स्वतः._वाहन = काहीनाही def माहिती(स्वतः): return {'नाव': स्वतः.नाव, 'वाहन': स्वतः.वाहन} @property def वाहन(स्वतः): return स्वतः._वाहन @वाहन.setter def वाहन(स्वतः, मूल्य): स्वतः._वाहन = मूल्य अनेक_सूर = [ सूर('पार्वती') सूर('गणपती'), सूर('शंकर'), सूर('कार्तिक') ] अनेक_सूर[0].वाहन = 'वाघ' अनेक_सूर[1].वाहन = 'मूषक' अनेक_सूर[2].वाहन = 'बैल' अनेक_सूर[3].वाहन = 'मोर' for एक_सूर in अनेक_सूर: लिहा(एक_सूर.नाव, '->', एक_सूर.वाहन) लिहा(एक_सूर.माहिती()) Output पार्वती -> वाघ {'नाव': 'पार्वती', 'वाहन': 'वाघ'} गणपती -> मूषक {'नाव': 'गणपती', 'वाहन': 'मूषक'} शंकर -> बैल {'नाव': 'शंकर', 'वाहन': 'बैल'} कार्तिक -> मोर {'नाव': 'कार्तिक', 'वाहन': 'मोर'}

जानेवारी 16, 2023 · 1 min · 94 words · शंतनू

Split Indic Words

Python Code import unicodedata def split_clusters(txt): """ Generate grapheme clusters for the Devanagari text.""" cluster = u'' end = False for char in txt: category = unicodedata.category(char) if (category == 'Lo' and end ) or category[0] == 'M': cluster = cluster + char else: if cluster: yield cluster cluster = char end = unicodedata.name(char).endswith(' SIGN VIRAMA') if cluster: yield cluster Go Code import ( "strings" "unicode" "golang.org/x/text/unicode/runenames" ) func splitClusters(txt string) (ret []string) { cluster := "" end := false for _, x := range txt { if (unicode....

जानेवारी 9, 2023 · 1 min · 150 words · शंतनू

Always Ask, Never Assume

The CNN photographer John was told that a twin engine plane would be waiting at the airport. Arriving at the airport he spotted a plane warming up outside the hangar. He jumped in & said: “Lets go.” The pilot happily took off. Once in the air John told the Pilot: “Fly low over the valley so I can take pictures of the fire on the hill.” Pilot: “Why?” John: “I’m the photographer for CNN....

नोव्हेंबर 9, 2022 · 1 min · 103 words · शंतनू