Lalitha

1

votes
1

answer
505

views

versioning css and js files using gulp

We are adding versions to css and js files to do cache busting. I have used gulp-rev-manifest and gulp-rev-collector to achieve this. But every time we do a build all the updated files with the new version number and have to be pushed to production which is not ideal. Is there any other way to do th...
lalitha
1

votes
1

answer
46

views

Create a new column with date value(2000-05-06) using mutate function in dplyr in R

This is my data_set_final state city base year_1995 year_1996 1: AZ Bell 170104.516 0.448619 0.4019198 2: AZ Benson 1343.781 0.448619 0.4019198 3: AZ Buckeye 34155.261 0.448619 0.4019198 Calculating CAGR on monthly basis like monthly % group_by (state,city) %>%...
Lalitha
1

votes
0

answer
60

views

Convert multiple ID's weekly data to time series format

Here is the structure of my data structure(list(customer_id = c('A', 'A', 'A', 'A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'B'), state = c('NC', 'NC', 'NC', 'NC', 'NC', 'NC', 'NC', 'NC', 'KA', 'KA', 'KA', 'KA', 'KA'), value = c(20.4, 29, 26, 40, 35, 36, 28, 41, 70, 75, 78, 99, 40), Date = st...
Lalitha
1

votes
2

answer
31

views

replace duplicate dates with weekly sequence order in R

I'm working on a similar kind of data structure(list(id = c('aaa', 'aaa', 'aaa', 'aaa', 'aaa', 'aaa', 'aaa', 'bbb', 'bbb', 'bbb', 'bbb', 'bbb', 'bbb', 'bbb', 'ccc', 'ccc', 'ccc', 'ccc', 'ccc', 'ccc'), score = c(100.5, 110.46, 113.35, 128.214, 130.123, 134.56, 139.56, 20.5, 21.465, 30.436, 49.24,...
Lalitha
1

votes
0

answer
25

views

model tuning for Holt function

I was working on Holt function from 'aTSA' package.which having default of alpha = 0.2 and beta = 0.1057.I'm just wandering of how to change those alpha and beta(on what basis)to train the model for better forecasting for next 5 years.And the type = c('additive','multiplicative') which one is the be...
Lalitha
1

votes
1

answer
25

views

Convert week to month by getting their last date of month in R

I have a weekly time series data and converted to monthly series, but the problem here is I need to combine this data with other data which is also a monthly but it has with their last date of month state_id county_id dt sales1 sales2 1 AWD 2018-01-06 50.1 43.4 1...
Lalitha
1

votes
1

answer
66

views

Get nested elements in hierarchical manner C# linq

I have list of objects which is map as Parent- child relationship. so parent have many children, grand children and great grandchildren and so on. I have structured table as below UserId UserNme 1 Jack 2 William 3 asha 4 winston ParentId ChildId 2 3 3...
Lalitha
1

votes
1

answer
424

views

Jquery Blur Event when a New tab is opened

I am using a textarea and onblur of it some action is performed. But When I open a new tab / change Tab, the blur event is getting triggered. How do I avoid it, How Can I differentiate the event blur and Tab change? Thank you.
Jyothirmayi Lalitha
1

votes
2

answer
556

views

HashMap lexicographic sort java if value is same

I have the following HashMap which is sorted in descending order based on Value using Comparator Collections.sort(entryList, new Comparator() { @Override public int compare(Entry entry1, Entry entry2) { // TODO Auto-generated method stub return entry2.getValue().compareTo(entry1.getValue()); } b=3,...
Lalitha Rajanala
0

votes
0

answer
3

views

plot different columns in one graph R

My sample data : structure(list(year = c(2018, 2018, 2018, 2018, 2019, 2019), month = c(9, 10, 11, 12, 1, 2), pred1 = c(-6.63356483810535, -6.50968293287978, -1.54767782423655, -1.47812226859267, -1.36788275407234, -1.28168637109063), pred2 = c(-1.42361872090391, -1.3982815502715, -1.14092414754...
Lalitha
1

votes
2

answer
89

views

aggregate from weekly to monthly data frame for a grouped data in R

My df had different states associated with their cities of weekly data with value_1 and value_2 structure(list(city_id = c('FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS030', 'FS...
Lalitha
1

votes
1

answer
810

views

Auto update changes in mongodb directly on frontend without page refresh with Node Socket.io and angularjs

My question is, incase I manually add one more message inside mongodb directly, how can I make it automatically visible in active UI client pages without a need of refreshing. My code is below. What happens in mine is, when new client is visiting page, existing records in mongo is displayed and thus...
Lalitha
2

votes
1

answer
9.7k

views

Create a Modal Dialog box containing a form using struts2

In my application I have a part of form which should allow details of a n number of persons. i.e, Field1 Field2 field3 now a button Details of persons on button click it open a modal dialog box containg a form with 3 fields about person.When I click save. the details of persons sections should upd...
Lalitha
2

votes
1

answer
830

views

SQL query to return the most recently updated rows - added/deleted

I have a table in my database which acts like an interface between two applications. One inserts and deletes rows in this table while the other has to poll to get the most recently added/deleted rows. The app that writes to the database is third-party and I am writing the code for querying the datab...
Lalitha
1

votes
2

answer
307

views

Angular controller is not being called

I am new to Angular Js. I want to get data from MVC controller and display in MVC view through angular js. My AngularJs controller is: angular.module('VC', []).controller('MenuController', ['$scope', '$http', function ($scope, $http) { console.log('ANGULAR JS'); $scope.getManufacturerList = functio...
Lalitha
2

votes
2

answer
70

views

How to copy specific text from one file to another using python?

I am writing a python script to copy only the facebook group_id's from file A to file B. The code I am using here is searchquery = 'group_id=' with open('h1.txt') as f1: with open('h2.txt', 'a') as f2: lines = f1.readlines() for i, line in enumerate(lines): if searchquery in line: f2.write(line)` W...
Lalitha Ramkumar
4

votes
2

answer
3.9k

views

How does Bonjour Over Bluetooth Work

Can anyone explain how bonjour works over bluetooth from iphone OS 3.0 onwards? The documentation says the Bonjour API's used in the application just works even if Wi-fi is off and Bluetooth is on. It also says , a Bluetooth PAN is established and hence IP address comes into picture. But Bonjour (ba...
LALITHA C V
1

votes
1

answer
1.3k

views

Flask after_request 'NoneType' object is not callable [duplicate]

This question already has an answer here: Basic flask application with after_request returns server error 1 answer I have a pretty heavy application built on flask-restful so I will just present the smaller version of the problem here. I have divided my application into modules having the structure...
Lalitha Ramkumar
2

votes
1

answer
66

views

How would I obtain only the texts of a webpage that contain necessary keyword using JSoup?

I came up with something like this which didn't work out. I am trying to extract the texts that contain the keyword alone and not the entire text of the webpage just because the webpage has that keyword. String pconcat=''; for (i = 0; i < urls.length; i++) { Document doc=Jsoup.connect(urls[i]).ignor...
Lalitha
2

votes
2

answer
1.7k

views

How to open specific page in the app on clicking Push Notification?

I am working on an Android app using cordova and implemented a push notification system using the cordova $PushPlugin. My PushPlugin code (source): module.run(function($rootScope,$cordovaPush) { var androidConfig = { 'senderID': 'replace_with_sender_id', }; document.addEventListener('deviceready',...
Lalitha Ramkumar
3

votes
1

answer
1.1k

views

Can python function be called by a SQL server trigger?

I have a database in MS SQL Server 2008 that has 3 tables. I want to create a trigger for INSERT, UPDATE and DELETE for each row for these tables. For the trigger function I want to call a python function. The python script needs to write some of the columns from the row for which the trigger occurr...
Lalitha
1

votes
2

answer
49

views

How to get distinct records in sqlserver

FUNDFAMILY_ID FUND_NAME REPORTSECTION_ID -------------------------------------------------------------- 172295295 VANGUARD GROWTH FUND (Retail) 126345 172295295 VANGUARD GROWTH FUND (Retail) 126354 -------------------------------------------------------------- Bu...
Lalitha Annem
2

votes
1

answer
2.6k

views

JDBC result set from an Oracle PL/SQL stored procedure

What does oracleClose() and oracleCloseQuery() do in sqlj.runtime.ExecutionContext.OracleContext. Since we upgraded jdbc driver jar to ojdbc5.jar with the oracleClose() in the finally block we get the below exception when using resultset.next() and not with oracleCloseQuery(). Is it safe to use ora...
Lalitha
-1

votes
1

answer
155

views

Your network is not allowed to request an OAuth token for this Application yammer

I have implement free version of Yammer in ASP.net C# project. I have created two Yammer network with two account (Tishansoft and FNA). I tried to connect tishansoft with FNA through oauth dialog window using followng URL: https://www.yammer.com/oauth2/authorize?client_id=[:client_id]&response_type=...
Lalitha
3

votes
1

answer
782

views

Jquery slick is not working with ng-repeat

I need to display set of images using slick jquery plugin. Here I am using ng-repeat for get set of images. my jquery code is: $('.multiple-items').slick({ infinite: true, slidesToShow: 4, slidesToScroll: 4, arrows:true, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 3, slidesToScroll:...
Lalitha