Skip to main content

Posts

Showing posts from 2020

Python on Windows 10

Last weekend I wanted to clean up my python installation on Windows 10. In the past, I used a combination of Anaconda, Python app from the Windows Store, and Python distributions from python.org. Most of these were older versions that I have not updated in a while since I spend most of my time in WSL. I started by deleting everything and cleaning up the installs. Afterwards, I downloaded python 3.8 from python.org, and proceeded with the installation. I selected install python for everyone and adding it to the %PATH% environment variable. After the installation completed everything worked like a charm, until I started installing packages. I started with installing TensorFlow: pip install tensorflow and got a cryptic error that one of the TensorFlow files was missing. A quick internet search revealed that it is due to a missing setting for long filenames in Windows 10.   Following the instructions in this Stackoverflow post to enable long filenames option in the local c

Interns at Microsoft

One of my favorite times at work is when the interns in my organization present the projects they have been working on for the past 10 or so weeks. It is amazing to see what they have accomplished during that period, and its impact on the business.   In my groups, I always make sure that everything the interns work on makes it to production and has visible business impact. The interns enjoy that quantifiable sense of accomplishment and seeing that their work lives in a launched product and improves some aspect of it.   After the interns demo their projects, I schedule follow-up 1:1 meetings with each of them. During the meeting, we go over their experiences during the internship, what they have learned in the process, and how can we make the experience better the next time around.   Their suggestions are always on point, constructive, and actionable. The conversations invariably drift to learning more about Microsoft, and what advice would I give them to have a successful e

MacOS Catalina, OneDrive, and case sensitive file systems

Over the weekend, I dusted off my old Macbook Air to search for some old family photos. I have not used the laptop for a long time, and it was completely out of charge. I plugged it in, and it quickly booted. Shortly after, I got bombarded with notifications that many of the applications needed updating, and that a new version of the OS was available.   I waited till I found the photos I was looking for, before attempting to upgrade anything. I also wanted to install OneDrive to get my old files to the cloud, so that I can access them from any of my devices, instead of dusting off old computers to get to them. The MacOS upgrade experience has always been fantastic, and this one was no different. The OS upgrade files downloaded quickly and after a restart and a quick install, the Macbook Air was ready to go.   Upgrading the installed applications was also a breeze, however in the process I discovered that a large majority of the applications installed were not compatible with Cata

Upgrading from WSL1 to WSL2 on Windows 10

I have been using WSL1 for a long time now and have been extremely pleased with it. After setting up Cygwin/X server, I don’t have a need for running Linux in a VM anymore. With the new Windows update, WSL is changing to support GPUs and GUI applications, so I decided to upgrade my install to make use of these improvements once they are shipped.  The upgrade path is easy: you can choose to configure a new WSL2 environment, or you can migrate your existing one. I decided to upgrade my install, since I had a lot of packages installed, and did not want to reinstall and configure them in a new environment again.  First, I started by getting everything I have in my Ubuntu environment up to date:   sudo apt update  sudo apt upgrade  Then in a windows command prompt, I updated my default WSL environment to version 2:   wsl –set-default-version 2  WSL2 requires Virtual machine platform support, and if that is not enabled, you can easily enable it through the control panel or searching

School and Chromebooks

 This year schools shifted to remote learning because of COVID-19. Before the semester started, our school district planned on a hybrid approach, where students attended schools physically a couple of days a week, and studied from home for the rest of the week. The thinking behind the plan was to balance the students’ exposure vs the benefits of in-person learning, however as the virus situation did not improve by the school start, the district abandoned the plan and opted for a full-time at home learning schedule. Before the school started, my plan was to have the kids use their iPads to access their learning materials. They were comfortable with their iPads, knew how to use a web-browser, and switch between applications well. As school start neared, I started thinking that they would benefit from a bigger screen, and a decent physical keyboard, so I began to look for reasonably priced laptops that would do the job. As I started looking late, and I think a lot of parents had  similar

Office in the cloud

Over the last month I have been using the web version of Office applications. I switched over from the desktop versions not because I was dissatisfied with them, but I switched because I wanted to be on the bleeding edge and get a preview of the new features quickly. I also did not want to update the desktop applications every day to get the new features, and the web apps relieved me from that burden.  As I used the web apps daily, I found that I did not miss the desktop versions. Sure, the web apps have their quirks, and living on the bleeding edge with preview features does not help. However, in this case, the plusses outweighed the minuses.  For one, I did not miss the ability to work offline, as I am almost always online and connected to a high-speed network. I loved that the browser took care of managing my open documents, presentations, spreadsheets, email, and calendar tabs, and automatically restored them when I restarted my computer or updated my browser. I also loved the sma

Offline matching and the catalog from Dell

A couple of weeks ago I saw an ad on my phone for the new Dell XPS laptop. Out of curiosity I clicked on it, and started configuring a couple of options just for fun. I read a lot of good reviews about the upcoming XPS laptop, how the design rivals that of Apple’s MacBook laptops, and how certain configurations come with Linux preinstalled. I played around with the options, and configured two beast laptops just for fun, then I left and have not thought about it anymore, since I am not in the market for a new laptop, being satisfied with my Surface 3 laptop and all. A couple of weeks later, I received a Dell catalog for the first time, addressed to me and not to the usual “Current Resident”, that has more details about the XPS laptops, gaming laptops, desktops, and peripherals that Dell sells. The catalog also included a 15% discount, which was a nice touch. I wondered how I got that catalog, even though I have not explicitly sign up for it, nor request one, nor provide any informat

Windows 10 May Update v2004

I upgraded all my devices to the Windows May update, all but my new Surface 3 laptop. Whenever I checked manually for the system updates, I got nothing, apart from the occasional Windows Defender updates. For a week I checked religiously, and when I did not get any notifications, I started searching online to see if there were any issues with my device. It turns out that there were. There is an issue affecting the Surface 3 laptop, and other devices that use an always on, always connected networking. The issue blocks the update for these devices, per the Known Issues and Release Problems page since it leads to random restarts or crashes. The issue is currently under investigation, and once resolved, the surface will get the update. I will wait till then. Interestingly there are recommendations online to circumvent the block on the Surface, by using the Update Assistant Tool , or the media creation tool. I don’t recommend either, unless you enjoy bricking your laptop. Luckily the a

WSL and X11 applications

I have been using the Windows Subsystem for Linux for a long time now and have been pretty pleased with it for text-based applications. When I need to use a graphical application, I fire up Hyper-V with a full Ubuntu install, and mount my local drives to access my directories and files. The heavy-handed solution worked well for a long time now, but over time I found I was installing the same set of programs I used frequently in both places. There must be a better solution. If only I could run graphical applications on WSL. Turns out there is a way.   I searched for a free X11 server that I can install on Windows 10 and found a couple that were highly rated. I also remembered that when I used Cygwin long time ago, it came with its own X-server, and wondered if I can install that separately, since with WSL I did not need Cygwin as a whole. It did, and I installed Cygwin/X server and fonts. After the install, I ran Xlaunch, which ran a configuration wizard to start the X-server.