How to move all modules to new version of Python (from 3.6 to 3.7)

Even if the old python version has been removed, it is possible to use the pip of the current python version with the –path option to list all the modules installed in the previous version. For example, migrating all my user installed python modules from 3.7 to 3.8 pip freeze –path ~/.local/lib/python3.7/site-packages > requirements.txt pip … Read more

How to update / upgrade from Angular 4 to Angular 5+

This specific problem was fixed with Node version update. I had to update Node version, sudo apt-get install nodejs npm uninstall -g @angular/cli npm cache clean npm install -g @angular/cli@latest ng new ProjectName node –version ==> 8.9.0 ng –version ==> 1.5.0 “dependencies”: { “@angular/animations”: “^5.0.0”, “@angular/common”: “^5.0.0”, “@angular/compiler”: “^5.0.0”, “@angular/core”: “^5.0.0”, “@angular/forms”: “^5.0.0”, “@angular/http”: “^5.0.0”, … Read more

Code breaks when updating jQuery due to changes in toggle

The version of the toggle function taking functions as parameters has been removed from last versions, as it’s easy to implement it yourself using click. For example : $(document).ready(function() { var count = 0; $(‘div.instruc’).click(function() { if ((count++)%2) { $(‘div.instrucContent’).slideUp(‘normal’); $(this).next().slideDown(‘normal’); } else { $(‘div.instrucContent’).slideUp(‘normal’); $(“div.instrucContent”).hide(); } }); You can also reintroduce a toggle function … Read more

Unity 5.5 obsolete particle system code

particle.startLifetime: First of all, what Unity did in Unity 5.5 was to add new futures to the ParticleSystem. They also exposed some ParticleSystem API that was hidden before. ParticleSystem.MainModule.startLifetime is now a type of MinMaxCurve instead of float like ParticleSystem.startLifetime. By doing this, you are now given more options such as modifying the startLifetime as … Read more

What’s the currently recommended way of performing partial updates with Web API?

There is no support in the current latest stable release of Web API (from August 2012). So if all you want to use is Web API RTM, you would have to implement the whole plumbing yourself. With that said, OData prerelease package supports partial updates very nicely through the new Delta<T> object. Currently the Microsoft.AspNet.WebApi.OData … Read more

Android studio Where to install NDK file? (downloaded it in zip)

Yes, rename the extracted folder android-ndk-r13b(probably the exact name will be outdated someday soon) to ndk-bundle (you can put the NDK [and SDK for that matter] anywhere, and leave the name alone if you want {do not do this, I’m sure seen one case of hard-coded sub-path}), then, make the settings point to the location … Read more