Comment by Vik on MS graph api get teams using javascript returns no results
{ "error": { "code": "ResourceNotFound", "message": "Resource not found.", "innerError": { "date": "2020-12-04T19:52:15", "request-id": "4a10513a-f755-4b8c-be7b-edd1d3382dae", "client-request-id":...
View ArticleComment by Vik on microsoft teams get conversation link
how about at the time when conversation is creating in the nodejs which extends the TeamsActivityHandler class. here onMessage gets all the messages. Can something be done to generate the URL at this...
View ArticleComment by Vik on Python how to filter a csv based on a column value and get...
This is not right as the value itself is '<50K' as string.
View ArticleComment by Vik on Python how to filter a csv based on a column value and get...
This is simplest. if you post it as an answer then i can mark it correct.
View ArticleComment by Vik on Axios fail to install on Firebase Function with nodejs 14
well i m not caring locally what it installs. the behavior i am seeing is that axios API call is not happening on the firebase functions. i don't see it in the logs.
View ArticleComment by Vik on LinearRegression fitting gives weird prediction
how to round it off so that it shows 0 in this case?
View ArticleComment by Vik on polynomial degree scatter graph points not fitting for...
well sure. however, if i change degree to say 2, or 3 or 4 or 5 i don't see any change in scatter curve. i would expect it to try to fit differently to whatever data i have
View Articleangular 6 pwa does not work
I did a simple ng new cx --service-workercd cxFirst observation: i do not see service worker installed using this in package.json or any module entry etc. is it a bug?I moved on and used ng add...
View Articleionic 3 angular native screenshot fails with typeError
i am using https://ionicframework.com/docs/native/screenshot/and my code looks like: app.module.tsimport { Screenshot } from '@ionic-native/screenshot';providers: [ StatusBar, ThemeProvider,...
View Articleangular gridster 2 resize a widget using a button
i have the gridster item as below and using https://github.com/tiberiuzuld/angular-gridster2<gridster-item [item]="myAptInfolet"...
View Articleadding a new api to google cloud end points for java
I have a sample google cloud end points project in eclipse using java. I did it by using https://cloud.google.com/endpoints/docs/frameworks/java/quickstart-frameworks-javaand then imported the project...
View Articleionic 3 navigation menu does not show up
I am bit super annoyed and confused on the side menu not showing up in different situations.My app flow and requirement are:initially, there is a landing page with 3 tabs and no side menu. On the first...
View Articleionic 3 popover is not coming next to button
I have done is 100s of time and it works as expected but just this case. the popover looks like: <ion-content style="padding:5px"><ion-label class="menu-options-link"...
View ArticleMS graph api get teams using javascript returns no results
i am using graph api javascript example from here https://learn.microsoft.com/en-us/graph/api/user-list-joinedteams?view=graph-rest-beta&tabs=javascriptand my code is like:async function(req, res)...
View Articletypescript class object storing to firebase db
I define a typescript class as below:export class UserModel{ private _name:string private _email:string private _userId:string private _teamId:string private _avatar:string private _teamName:string...
View Articleconvert ionic datetime to hour and min
I am using ionic date time component as below<ion-item ><ion-label>Time:</ion-label><ion-datetime displayFormat="h:mm A" pickerFormat="h mm A"...
View ArticleReplacing contents of html page using another html page
I am trying to avoid header, sidebar info repeating of my html page template. So, I was thinking to user innerHTML to replace the contents on the fly. However, I do not want to put entire target html...
View Articleangular waiting for a method to finish or a variable to be initialized
I have a service used as a local data store to share data across the app. This service makes a few rest calls in the beginning to initialize some data. It look like this:Injectable()export class...
View ArticleLinearRegression fitting gives weird prediction
Below is my codeimport numpy as npfrom sklearn.linear_model import LinearRegressionX = np.array([[1], [2], [3], [4]])y = np.array([[6],[8], [2], [2]])reg = LinearRegression().fit(X, y)print("Next will...
View Articleangular material: vertically arranging contents in a mat-grid-tile
I am using angular material and have a grid list component with two tiles. the problem is the contents are getting arranged left to right rather top to bottom. <mat-grid-list cols="3"...
View Articlepolynomial degree scatter graph points not fitting for linear regression
I am using sklearn linear and polynomial feature to fit to a data set. the code looks like below. I am plotting the points using scatter but they don't seem to align with the prediction values. not...
View Articleangular material position of dialog with respect to opening element
I am using angular material https://material.angular.io/components/dialog/overview and my dialog works as expected. The only trouble is that it opens in the middle of the page as default position. My...
View Articlemicrosoft teams get conversation link
I am using Microsoft team integration using nodejs. In the Teams client you can easily copy a link to the conversation and this can be used to navigate to the specific conversation any time.see the...
View Articleionic 4: changing ion-content background does not work
i have tried in global.scss as ion-content{ background-image: url('assets/images/cover.jpg'); -webkit-background-image: url('assets/images/cover.jpg'); background-repeat: no-repeat;...
View Articleconvert javascript date format to YYYY-MM-DDTHH:MM:SS
how to convert default date in javascript to YYYY-MM-DDTHH:MM:SS format.new Date() returns Sun Aug 07 2016 16:38:34 GMT+0000 (UTC) and i need the current date to above format.
View Articlejavascript getting hour and min from epoch value
i am using the below code to get the hh:mm from epoch var dt = new Date(t*1000); var hr = dt.getHours(); var m = "0"+ dt.getMinutes(); return hr+':'+ m.substr(-2)for below values:1542895249079 prints:...
View Articleuploading file to firebase storage using angularfire
I am using angularfire2 for uploading image to the firebase storage. The upload works just fine though i have trouble in the timing to wait for my code for the download url to be available. Here is the...
View Articlefirebase function on db trigger throws Function returned undefined, expected...
my firebase function based on realtime database trigger looks like belowexports.on_user_created = functions.database.ref("/users/{id}") .onCreate((change, context) => { console.log("start of...
View ArticleFirebase messaging app/network-timeout from firebase functions
my push notification code from the firebase function looks like below: //fetch push tokens of all admins as well to send push notification var tokens = [] if(pushToken !== undefined &&...
View Articleslack api to find existing channel
I am playing with slack apis to create an integration. I am able to sucessfully create a slack channel using this.http.post(slackApiHost +'/channels.create', payload, {headers: headers}) .subscribe(...
View Articlefirebase hosting blocking script due to CORS issue
I am using firebase hosting to host few scripts and trying to access them from another site. it naturally gets blocked due to CORS issues. based on my research on other forum threads etc i modified the...
View ArticleDocker image running a Mac OS X installation
I am using Docker for Mac and wish to create Docker image running a Mac El Capitan with my development env. I am not finding any resources on this. All I see is Linux installations.On Linux I saw...
View Articleimage using cordova plugin looks horrible on canvas
i am using cordova for my ios app which captures the image the code looks navigator.camera.getPicture(onSuccessCamera, onFailureCamera, { quality: 25, destinationType:...
View ArticleAxios fail to install on Firebase Function with nodejs 14
I am using Firebase Functions and trying to install and use axios. when I do npm install to install the package as below. I have no idea why it is failing. On run time I do not see any logs...
View ArticleSetting an exception cause in Java
I can see on catching an exception that I can print e.getCause(), though it is always null.Do I need to set it somewhere, or is something missing which is setting the cause to null?
View Articleaccessing a docker container from another container
I created two docker containers based on two different images. One of db and another for webserver. Both containers are running on my mac osx.I can access db container from host machine and same way...
View Article
More Pages to Explore .....