Taken with my cellphone (Nexus 5) camera. Effects and filter done automatically by Google Photos.
Taken with my cellphone (Nexus 5) camera. Effects and filter done automatically by Google Photos.
Regular readers of this blog will know of my struggles to find a job for the last two years. I finally have some good news on this front – I started a new job on Monday for a small consulting firm in Orange County. The work is challenging, but at the same time, interesting and rewarding. I also have the privilege of working alongside some extremely successful, accomplished, and intelligent people, so I am actually excited to go in to work each day!
I’m very happy that the position is local – one of my priorities was to stay in CA, not just for mrudangam but also given recent developments (the election and the US economy in general). For better or for worse, everything is getting concentrated on the coasts, and most tech/biotech jobs are either in the Bay Area or Boston – not being proximate to those areas can set you back in terms of job growth potential. In addition, I learned the hard way that networking is everything when it comes to getting a job – applying online is like playing roulette hoping that your resume gets chosen out of the pile out of 100’s/1000’s of others.
Thanks, President Obama, for a remarkable 8 years. Your administration accomplished a lot, and even though it may seem that we do not appreciate your struggles (especially with a gridlocked partisan Congress), I hope history will be a lot kinder and that you do get the recognition you deserve. You were more than we, the American people, deserved as last November’s election showed. You can now take a well-earned break from public scrutiny – but please don’t disappear for too long, as we need your help in making sure all your hard work doesn’t get undone by the next President!
This video has been trending on Youtube for the last couple of days:
One cannot fault TMK’s music – the music is beautiful, and his rendition is excellent, as always.
I just find it interesting that he is using Carnatic music as a medium for environmental activism, given that Carnatic music is an extremely niche art form. This may not be the optimal way to reach out to a lot of people with this message.
Well, 2016 is drawing to a close…
This has been a weird year globally, with the death of a lot of influential people in history (including, among others, Muhammad Ali and lately J. Jayalalitha, the Chief Minister of Tamil Nadu, India), and some other strange political occurrences (Brexit and Trump getting elected). I haven’t posted here much because I have a million thoughts swirling around my mind all the time now, and finding a couple of hours of focused time in order to distill them down into an article on a single topic is a bit challenging. Nonetheless, there is something that I want to discuss today.
Firstly, I had the sobering realization a few days ago that it has been 2 years since I finished my PhD and I have nothing concrete to show for it; I’ve been unemployed for the past two years. Well, I’ve learned some valuable things about life and other topics which I wouldn’t have been able to learn otherwise, but it has been at a rather expensive cost: progress in my career.
In any case, one of the major themes of this year (for me) was that I made major progress in learning programming! I want to share what I learned so that others who are thinking of venturing down this path can learn from my experiences.
Firstly, my motivation in learning to code resulted in me being a little unfocused; I was unemployed and seeing a lot of people around me getting hired for cushy tech jobs with great salaries. Desperation shouldn’t be your only motivation for trying something. I was also unaware of the vast variety of “coding” jobs out there, and they can be quite different; CSS is considered “coding”, but it is vastly different from doing software development in C++, for instance.
I’m all for teaching computer science principles in the grade school level; the basics of control flow are not terribly complicated – it’s just logic, after all. Understanding looping, recursion, iterations, and conditionals does not require a very advanced background in any other subject, and knowing these will take you very far later on in life. I’m a strong believer that everyone should learn to code, given the increasing automation that is threatening all industries today. Those who can code will be the last people to have their jobs automated out of existence, pure and simple.
Web Development has the lowest barrier to entry among all the different types of programming, and that’s why places like FreeCodeCamp thrive. It was after doing it for a while that I realized webdev wasn’t for me, however; I don’t have the patience to mess around with DOM elements and get that alignment juuuuust right; if I really had to choose, I would be more comfortable doing back-end stuff.
I used the word “naively” in the previous paragraph; here’s what I learned:
So – what useful, actionable advice can I give after all this? What I can say is that if you want to learn “Data Science”, all the material is available online for free. The advantage with a bootcamp is that it gives you a roadmap of what to study, as well as connections – to your classmates, instructors, and other people who the organization is affiliated with. Out of all the courses I’ve seen and taken online regarding “Data Science”, this progression is probably the best, and most logical (feel free to leave comments if you have other suggestions):
So – after taking all of these courses, THEN you can think about joining a bootcamp to further your knowledge. I wish I had done all the above courses before I did the “Data Science” bootcamp this summer; I would have been in a better position to learn, absorb, and better assimilate the material. But what’s done is done, and I’m continuing to learn Python, Machine Learning, and “Data Science” concepts at my own pace. I’m continuing to practice vanilla Python on Hackerrank, and you can follow my progress on my github – I’m trying to make github commits on a regular basis so that it makes a favorable impression on whoever happens to stumble across it! Interestingly, some of my repositories are getting a fair bit of traffic….so, you never know!
I sincerely hope that this rather “stream-of-consciousness” post helps you, if you do decide to venture down this path!
Shameless plug for a thani I played in a concert a few months ago here, on Diwali:
In retrospect, the sound quality is not bad, considering that I was playing without mikes – this audio is directly spliced from the video recording of the concert.
I just heard the news today that the renowned musician Dr. Mangalampalli Balamuralikrishna passed away. I’m not referring to him as a “Carnatic vocalist” or “Carnatic musician” here, because his music transcends such classifications. My Facebook news feed today was full of people writing posts on this theme, and I figured I could write something a little longer here.
Dr. Balamuralikrishna (I’ll refer to him from here on as “BMK”) was probably the first Carnatic musician (!) to achieve celebrity status, and I’ve heard stories about the kinds of crowds he was able to pull not just at concerts, but just by being in a certain area; one of my friends told me about how he once traveled with BMK in a train in India, and at every stop, there would be hordes of people at the station waiting with garlands for an opportunity to see their favorite musician!
BMK with M. Chandrashekaran (violin) and Umayalpuram K. Sivaraman (mrudangam) – one can see that the year is 1959, and the writing looks like Kannada, so this was probably in Bangalore? EDIT: Thanks to KV Ramprasad and others on Facebook, the sign is actually in Telugu, and reads “Sri Tyagaraja Sangeetha Sabha Anantapuram, established 1959”.
There’s not much I can add to all that has been written about this legendary musician – fortunately his legacy will live on in the numerous recordings that exist of his concerts, as well as the countless commercial albums that he has released, and his movies. Like most of the top musicians of his generation, BMK was a child prodigy, and was adept not just in vocal music, but also in viola and mrudangam.
This is a particularly interesting clip of BMK accompanying the doyen Semmangudi Srinivasa Iyer on the viola – not the usual violin. You can tell it is noticeably bigger than a violin would be. In audience shots, you can see several of today’s top musicians in attendance, including Sanjay Subrahmanyam, T. M. Krishna, and R. K. Sriram Kumar, among others.
Dr. BMK was gifted with a golden voice, which is partly what made his music so great. It is not only resonant, but very fluid – he was able to span 3 complete octaves with ease, and the middle to lower octaves have a very bassy quality that nobody else has. Of course, having a great voice is one thing, and being able to harness it’s full potential is quite another; great musicians with both qualities literally only come once or twice a generation. I do consider myself fortunate that I was able to hear him live just once, in a concert in Sydney organized by Pallavi.
This Kalyani from a concert in Bombay in 1963 demonstrates not just the potential of BMK’s voice, but also his creativity – he employs sruthi bedham (modal shift of tonic) several times not just in the raga alapana, but also in the kalpana swaram, which is much more rare (in fact, I have not heard anyone do it since). Of course, Lalgudi Jayaraman is able to follow effortlessly, and his replies also garner applause several times! I mentioned this particular thani by Umayalpuram Sivaraman sir in a previous post, and it is worth rementioning; the UKS stamp is clearly present from the araichapu phrases to the signature mohara and final korvai in tisra nadai.
Dr. Balamurali’s legacy also lives on in the numerous compositions he authored – he has created numerous thillanas and varnams, in addition to composing krithis in all the 72 melakartha ragams. He also created new ragams such as Mahathi, Lavangi, and others, which did land him into some controversy with vidwan Dr. S. Balachander, who disputed whether those scales could be considered complete ragams at all, since they only had 3 or 4 notes.
This is BMK’s pancha gathi bedha thillana (set to 5 nadais) in 5 “-priya” ragams, as announced in the beginning. This rendition is particularly famous among collectors as it is from his Sangita Kalanidhi concert at the Madras Music Academy, December 1978. This concert also deserves further mention, as the main piece in that concert is an RTP in Kalyani set to a new thalam – Panchamukhi Adi thalam. BMK describes it as doing “gathi bedham” (changing the counts per beat) on the “sashabdha kriyas” (the ‘sounded’ beats when putting the thalam). In other words, only modifying the 1st, 5th, and 7th beats in Adi thalam (those beats are ‘sounded’ since they are downward slaps) to have 2.5 aksharams. Panchamukhi Adi thalam therefore has 12.5 beats. The pallavi set to this thalam is really simple and yet charming, and UKS sir plays a brilliant thani to this new thalam, with his usual razor control. I didn’t upload it because my Soundcloud account is getting full, but it is circulating among collectors. On an interesting side note, I also heard that M. G. Ramachandran (the Chief Minister for Tamil Nadu at the time) was in attendance at that concert!
This is the same pallavi from a different concert with B. V. Raghavendra Rao and Bangalore V. Praveen.
BMK has explored this concept, and sung pallavis in the related trimukhi Adi thalam and navamukhi thalam – in fact, he sang an RTP with the latter in Gamanashrama (53rd melakartha) in the Music Academy in 1980. Gamanashrama is an extraordinarily difficult ragam to sing, as it only came about with the invention of the melakartha scheme in the 17th century. The janya ragams associated with it (Hamsanandi and Purvikalyani) predate it by a long time, and so it is difficult to sing the ragam and maintain its identity unique to Purvikalyani.
EDIT: As pointed out to me yesterday, Hamsanandi is probably younger than Gamanashrama, and upon reflection, this makes sense; the trinity (Thyagaraja, Muthuswami Dikshitar, and Shyama Sastri) did not have any krithis in Hamsanandi. Most of the popular krithis we know in that ragam are actually from more recent composers, such as Harikesanallur Muthaiah Bhagavathar, Papanasam Sivan, and others.
I had mentioned earlier that BMK had acted in a few movies; his Wikipedia page has the complete list (and the fact that his wiki page is so long and detailed is a testament to his fanbase). This song, Oru Nal Podhuma (“is one day enough?”) is one of his hit Tamil cine songs from the movie Thiruvilayadal. This recording is from a concert on 15/2/1985, in Bahrain, and the mrudangam is by none other than Thanjavur Upendran sir. BMK and Upendran sir were extremely close friends, and they had performed thousands of concerts together, including a tour to the US in the 80s. Upendran sir was also one of the people who convinced Balamurali early on to settle in Chennai in other to further his career in Carnatic music.
I’ll leave it here for now. I realized that I had not written any posts on the broad topic of Carnatic music (excluding me making shameless plugs of my clips/concerts) in a while, and this sad news prompted me to write something.
Please see this video if you want a realistic perspective on the field of chemistry today. He touches on very important topics that I have discussed here in the past, such as:
This paper was further down on my list, but I’ve decided to bump it up and cover it today.
Modern practitioners of organic synthesis or medicinal chemistry will no doubt be aware of how hot fluorine chemistry is now; every issue of JACS, JOC, Organic Letters, Angewandte Chemie, or Chemical Science has at least one paper on the development of new fluorination methodologies. But this was not always the case. Fluorine chemistry used to be considered very esoteric, primarily because of the reagents required (F2, HF, SF4, among others), which also necessitated special reaction conditions and apparatus. This limited the accessibility of fluorinated compounds, and research in this area was primarily done by groups in academia (such as Olah, Seppelt, Christe, Bartlett, Rozen, Haszeldine, Barton) or industry (DuPont, 3M) that had the infrastructure in place to carry out this chemistry.
One of the long-standing challenges in organofluorine chemistry was the development of a mild, effective method to introduce the trifluoromethyl (-CF3) group into organic molecules. I had briefly discussed the challenges in isolating the trifluoromethide anion earlier; this is why the development of nucleophilic trifluoromethylation methods only came about recently. It is necessary to use reagents that act as “pseudo-anions”, and can do a transfer of the -CF3 group under certain conditions.
Prakash and Olah were motivated by their desire to study carbocations that had an electron-withdrawing group α to the cation, such as the ones below:
The synthesis of the precursors for these cations is rather interesting – each involves a different type of chemistry. The α-nitro cation above is prepared by ionizing the gem-dinitro compound (which was synthesized from benzophenone oxime and N2O4), while the α-fluoro cation is prepared from gem-difluorodiphenylmethane, which can be prepared from benzophenone and SF4. The α-cyano cation is prepared by ionizing benzophenone cyanohydrin, which can be easily prepared using a procedure developed by Prof. Paul Gassman with TMSCN and ZnI2.
The α-CF3 cation can be prepared from 2,2,2-triphenylacetophenone and phenylmagnesium bromide, but substituted derivatives are more challenging to prepare; you’ll need substituted derivates of 2,2,2,-triphenylacetophenone which are either challenging to synthesize, of limited commercial availability, or expensive. The easier route would be to start from benzophenone and add a -CF3 to the carbonyl. This was elegantly solved by Prakash, Olah, and Krishnamurti in 1989. They demonstrated that the compound TMSCF3 could undergo nucleophilic trifluoromethyl transfer to carbonyls very readily, under fluoride-ion catalysis. TMSCF3 had first been prepared by Prof. Ingo Ruppert (Germany) a few years earlier, but he had not demonstrated any potential reactions with it.
This is the proposed mechanism; interestingly, fluoride is not necessarily the only catalyst that can initiate this reaction – Dr. Prakash later showed that carbonates and amine-N-oxides can also act as catalysts. I’m not sure if DMF/imidazole can also initiate this reaction (as they do Corey’s TBS protection), but I’m sure that should also work. One big challenge that still has not been solved is to do this transfer asymmetrically; in other words, a facially-selective trifluoromethyl transfer to carbonyls is still lacking.
This has led to a whole slew of developments which are simply too numerous to list here, leading to TMSCF3 being called the “Ruppert-Prakash reagent”, after the chemists who first synthesized it (Ruppert) and demonstrated its synthetic utility (Prakash). The commercial availability of TMSCF3 also opened up trifluoromethylation to all organic chemists (the original synthesis (adapted from Ruppert’s work) uses CF3Br, which is now banned under the Montreal Protocol). Recently, a postdoc in Prakash’s group (who used to work next to me) came up with an improved synthesis of TMSCF3 from CF3H, which is a byproduct of Teflon manufacturing, and therefore much cheaper and more readily available than CF3Br.
Many, many other types of trifluoromethyl transfer reagents have been developed, and almost all of these use TMSCF3 in their synthesis. The electrophilic trifluoromethylating reagent developed by Togni is illustrative of this. Melanie Sanford has also conducted very nice work in organometallic chemistry studying the reductive elimination of -CF3 from Pd(IV); I particularly remember a very interesting set of papers she had published that showed that “F+” reagents were the only compounds capable of oxidizing the Pd(II) to Pd(IV) and selectively inducing the reductive elimination of the -CF3, because the energy of reductive elimination of -F was greater than that of -CF3. It’s not much though; I think it was 5 kcal or less! Of course, all of these trifluoromethylated metal complexes were synthesized with TMSCF3 as the -CF3 source.
CuCF3 and AgCF3 are also receiving increased interest now; I talked about CuCF3 earlier. Both of these complexes can be generated in situ from TMSCF3 and appropriate metal salts, and can be used for a variety of transformations, including Sandmeyer-type reactions. I remember that I and my labmates had tried to implement this reaction without much success, and when we saw Goossen’s paper, it seems that the copper counterion is very significant; the reaction only works with CuSCN, which we did not have on hand.
As mentioned earlier, the challenge with developing organometallic reagents for nucleophilic -CF3 transfer (such as LiCF3 or CF3MgBr) is that the CF3 anion is kinetically unstable and tends to undergo fast α-defluorination to yield difluorocarbene. This can be a nuisance, but depending on your needs, can also be synthetically useful. Difluorocarbene can also undergo the usual carbene reactions, such as 2+1 additions to olefins to give gem-difluorocyclopropa(e)nes, as well as insertions into weak bonds, such as S-H or Sn-H. Some friends of mine in Prakash’s group were able to use this to develop useful chemistry – one nice example is the insertion of CF2 carbene so generated into the Sn-H bond of Bu3SnH to make Bu3SnCF2H, which proved to be a useful reagent for -CF2H transfer.
There was a paper published a couple of years ago by a group in Russia describing the synthesis of TMSCF2H from TMSCF3 by a simple reduction using sodium borohydride. This allows improved access to TMSCF2H (which was otherwise difficult to prepare) and related analogues (such as TMSCF2D, TMSCF2Cl, and others). The challenge with TMSCF2H is that it is more difficult to activate compared to TMSCF3 (it is speculated that the reactive species that does the actual -CF3 transfer is a pentavalent siliconate), accounting for the limited substrate scope (with ketones) in this paper by Jinbo Hu.
Anyway, this is a brief overview of trifluoromethylation chemistry, and I hope the huge impact that Dr. Prakash’s initial paper had is evident – TMSCF3 is now the major source of -CF3 in organic chemistry; most research chemists will not think about how it is produced! This is by no means exhaustive, and numerous reviews (such as this one) are being published about this area of chemistry all the time; check those out if you want more details.
I just finished the above course – I just completed the last problem on the final exam and completed the exit survey a few minutes ago, so I figured I would write my thoughts on the course while they’re still fresh.
My impressions of the course are unanimously positive. I just finished the current iteration of the course (Aug – Nov 2016), and I found it to be excellent. I just finished writing an email to Prof. Grimson (the professor conducting the course), thanking him for all his efforts in preparing such high-quality materials!
Keep in mind that the title of the course is “Introduction to Computer Science and Programming using Python”, and so it is aimed to be an intro CS course of sorts. Nonetheless, it does serve as a very good introduction to the Python language, and covers fundamental CS concepts while teaching the Python language, including the various data structures (lists, tuples, and dictionaries), functions, and classes. The course isn’t intended to teach Python specifically, and so doesn’t cover a lot of the things unique to Python (such as lambda functions, list comprehensions, and other topics).
In retrospect, I wish I had taken this course before taking the “Data Science” bootcamp this summer – I would have been better prepared and would have had at least a rudimentary understanding of the CS fundamentals. Anyway, what’s done is done, and I’m glad that I was able to take this course.
The problem sets were very well crafted. They were appropriately challenging, and I probably did spend around the recommended 15 hours/week or so on them, and they weren’t too difficult where I would have ended up throwing my computer out the window and quitting in frustration. The bonus is that I ended up also learning how to use my computer better – since this course uses Python 3, I ended up using Anaconda to install that (so that I could manage that alongside my existing Python 2 install). I also ended up using Spyder as my IDE of choice for the course, and I’ve come to like that a lot.
As always, if you want to take a look at the problem sets, exercises, and my solutions, I’m posting everything to my github.
Proof of completion (I blacked out my username and email to dodge spambots):
Anyway, onwards to the sequel course, 6.00.2x! I started this course and it’s proving to be MUCH tougher, since the barrier is no longer the Python language, but abstractly developing algorithms before implementing them in Python.