Angular Material get latest version | md-chips : read only, removable - angularjs

For my applications I need to use the <chips> directive from Angular-Material.
The chips need to be read only (no input) but still removable. This feature is not implemented in the latest released version : see https://material.angularjs.org/1.1.0-rc.5/demo/chips
But it is implemented on the MASTER version : see https://material.angularjs.org/HEAD/demo/chips
The feature I look for :
Is there any easy or right way to get this version in my app ?
I know this question might be simple and I apologize for that, I just never had this problem before so I wanted to make sure I am doing the right thing !
Thank you in advance.

As per the installation documents:
bower install 'angular-material#master'
I did this and then did a search for the string "removable" in angular-material.js and it is found in the code for MdChipsCtrl.

Related

How to update statsmodels to 0.13.0.dev0 version (to use OrderedModel module)?

What I was trying to do?
I was trying to analyze data using ordinal logistic regression. For that, I tried to import OrderedModel from statsmodels.miscmodels.ordinal_model as suggested by this doc.
Then, what is the problem?
After execution of the above mentioned import statement, I got the following error.
No module named 'statsmodels.miscmodels.ordinal_model'
How did I try to solve the problem?
First of all, I checked the statsmodels version, I am using. I find that I am using the latest version (0.12.1), available in Anaconda. From this doc, I perceive that I will need to use 0.13.0.dev0 version to get the OrderedModel module, as in v0.12.1, there is no folder/file named OrderedModel. However, I do not find any way to update the statsmodels to 0.13.0.dev0 version.
Then, my question
How can I update statsmodels to 0.13.0.dev0 version so that I can use OrderedModel module?
Note: I know that in Python, there are some other ways to do ordinal logit regression. However, I want to use statsmodels due to it's nice summary of analysis.
Thanks in advance!
You can install a recent build from the nightly wheel repository hosted on Anaconda.org.
Run pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple statsmodels.
It looks like you will need to compile from the GitHub. See prior related question here:
How to update to the developer version of statsmodels using Conda?

How to empty caches when a new version is deployed?

I'm using Angularjs framework and I'm updating the application frequently. But most of the time my clients are complaining about the issue I already fixed. I think there is a caching problem in my application. I searched for this issue and couldn't find proper example to fix it. Can anyone explain how to empty/clear caches after a new version of code is deployed?
More information about your server side system would help.
But a very common cache busting technique is appending a version no in your javascript includes.
<script src="http://www.example.com/example.js?v=1">
Now whenever your javascript changes change the version no.
Either manually or automate your build to replace this version with something like a build no.
Now as browser will see a new url it will not use the previously cached version.
I found a grunt library which adds timestamp to js files and reloads them if it changed.
https://github.com/shakyShane/grunt-cache-breaker

Migration from angular 1.2 to 1.5

Currently I am using angular v1.2.26. When I upgraded it to v1.5.0(or v.1.4.8), the application stopped working.
What are the changes in the existing code of v1.2.26, I should not be missing, to make the application work?
There's now a guide available https://docs.angularjs.org/guide/migration - probably slightly less tedious than reading every single ChangeLog
Migration Guide - https://docs.angularjs.org/guide/migration
See the change log
https://github.com/angular/angular.js/blob/master/CHANGELOG.md
An easier way is to see where your code fails, debug a bit and hit the nail. There are no huge changes between the versions in question.
Although, your question is not a good candidate for StackOverflow questions but you should read the ChangeLog to see the breaking changes and fixes in each release after v1.2.26 to v1.5.0.
See the changes https://github.com/angular/angular.js/blob/master/CHANGELOG.md
Please take a look if this may help you:
http://www.diatomenterprises.com/migration-history-from-angularjs-1-3-to-1-5-and-then-2-0/
I can assist you in migration from 1.3/1.4 to 1.5 since did it a few times on different projects and all went smooth. Of course there're some tricks to do, but in general nothing breaking.

Unstable build file for angular.min.js should be used in my project or not?

I am using the ng-if for showing the matched data from the json. Here, the current
"//ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"
is not responding accordingly.
some where i found an example where they used another js file -
"//ajax.googleapis.com/ajax/libs/angularjs/1.2.0rc1/angular.min.js".
which when I replaced with. ng-if is working fine.
so, should I replace this file ? as they mentioned about this file is that "this is an unstable build".
what the unstable build means ? any suggestion would be highly appreciated.
The latest stable version of angular JS is 1.2.21 - I'd recommend using that. You can get the build from https://angularjs.org/.
Are you following some examples online? It's likely the examples are just outdated - Start off with 1.2.21 - The API docs for that build are here. (NG IF documentation is here)
RC -Release Candidate.
From wikipedia:
A release candidate (RC) is a beta version with potential to be a final product, which is ready to release unless significant bugs emerge. In this stage of product stabilization, all product features have been designed, coded and tested through one or more beta cycles with no known showstopper-class bug. A release is called code complete when the development team agrees that no entirely new source code will be added to this release. There could still be source code changes to fix defects, changes to documentation and data files, and peripheral code for test cases or utilities. Beta testers, if privately selected, will often be credited for using the release candidate as though it were a finished product. Beta testing is conducted in a client's or customer's location and to test the software from a user's perspective.
You can find all stable versions HERE or HERE.
It seems like ngIf comming with version 1.1.*

Is Raven.Client.Authorization 1.0.960 package compatible with Raven.Client 1.0.972?

The current version of the Raven.Client.Authorization is back a version from Raven.Client. The new Raven.Clients allows you to use the latest Json.Net package and therefore RestSharp, ETC.
I hope to save some time / avoid a deep valley of frustration here. Can 1.0.972 support the 1.0.960 Authorization?
I don't sure if out of the box. Try use assembly redirect. If this is not working, you can get the source of build 972 from this branch than compile the Raven.Client.Authorization for yourself, after you update the json.net reference there.
P.S. If your app is in development and will be for the next 2 months, I strongly recommend that you'll try out v1.2, which already started the stabilization process.

Resources