Posts

Showing posts from August, 2018

How do I dynamically set an animation using ng-view in Angular?

I'm using an ng-view to transition between views using animation (angular 1.2RC1). To determine the direction the animation should take, I'm inserting a class either of slide-left or slide-right on the ng-view div before calling my location change. The leave animation (first to run) works but then removes my class from the ng-view div. I use a service to determine whether to slide left or slide right as follows: $scope.slideView = function(index, url){ if ( viewSlideIndex.getViewIndex() > index) { $('#slideview') .toggleClass("slide-left", false) .toggleClass("slide-right", true); } else { $('#slideview') .toggleClass("slide-left", true) .toggleClass("slide-right", false); }; $location.url(url); } which updates the class in the ng-view div: Pg1 Pg2 Pg3 It looks as though the slideView (ng-view) classes have already been cached and are refreshed upon completi...

re: Error on Google BigQueryJavaGettingStarted

I am new to Google bigquery , and I just tried to run the Google BigQueryJavaGettingStarted, but I am having problems. It gave me error messages saying that "The method setDataStoreFactory(FileDataStoreFactory) is undefined for the type GoogleAuthorizationCodeFlow.Builder", and "The method load(JsonFactory, InputStream) in the type GoogleClientSecrets is not applicable for the arguments (JacksonFactory, Reader)". I could not figure out why it gave me such errors since I have import all the spcific jar files from the tutorial to my project. So any ideas on how to fix these errors would be greatly appreciated. Many Thanks in advance for all of your help. Below is my simple program from Google BigQueryJavaGettingStarted package com.google.cloud.bigquery.samples; import com.google.api.client.auth.oauth2.Credential; import com.google.api.client.extensions.java6.auth.oauth2.AuthorizationCodeInstalledApp; import com.google.api.client.extensions.jetty.auth.oauth2.L...

Automating the Webservice Testing

I am completely new to webservice testing. I want to Automate the whole webservice testing part using a framework. For eg : i have been given with a webservice say "10.0.0.191:8082/test/login" and now i want to test its input and output result and validate it BUT with developing an automation script which does it for me. Say, like Selenium or cucumber which automates the complete website. theres this Run button which starts the automation test and at the end gives me the report. I want to develop something like this and i have no idea which framework is used and how to approach it. Please help and Sincere Thanks in advance for your replies. Solved You need to create a webservice client and test the responses. The framework is little complicated as it will require you to know about the webservices. We use RestTest (author) https://github.com/rawoke083/RestTest Just dump all your service endpoint in a file with test conditions #my.a...

Autocorrect Spell Checker

I have a TSV (tab-separated value) file that I need to spell-check for misspellings and combined words (ie 'I love you' vs 'Iloveyou'). I've installed Aspell on my machine and can run it through R using the aspell() function. files However, the output from running it in R is just a list of misspelled words and possible suggestions. > summary(res) Possibly mis-spelled words: [1] "amant" "contaneir" "creat" "ddition" "EssaySet" "EssayText" "experiament" "expireiment" "expirement" [10] "Fipst" "infomation" "Inorder" "measureing" "mintued" "neccisary" "officialy" "renuminering" "rinsen" [19] "sticlenx" "sucessfully" "tipe" "vineager" "vinigar" ...