Timezone Asia/Kolkata changed to PST

What I did: Ran this command: sudo cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime What happened: My local time changed to PST. Now I ran: sudo cp /usr/share/zoneinfo/Asia/Kolkata /etc/localtime But my system time didn’t change back to IST. Instead it’s showing PST’s time with IST label. In that picture, I’m pointing to IST Kolkata, but the time zone highlighted…

Details

/dev/mapper/ubuntu–vg-root does not exist, tried all the usual fixes

Sorry about the screenshot but it captures my problem. Ubuntu 19.10 encrypted LVM2 setup I have followed all the guides I could find. Checked rootdelay, /proc/modules exists, did cryptsetup luksOpen etc. as described here – Update initramfs Removed all my nvidia drivers. Removed a broken lvm raid0 setup on drives specifically used to store data.…

Details

Getting the base url using $location in angularJS

I have a url which looks like below http://localhost:8080/test#/users/list When I use the below:- $location.url() gives me -> “users/list” $location.path() gives me -> “users/list” $location.absUrl() gives me ->”http://localhost:8080/test#/users/list” the entire url $location.host() gives me-> “localhost” Is there any way I can get just :- http://localhost:8080/test#/ or even test#/ ? I could get the entire url…

Details

Programmatically set date of NgbDatePicker

I’ve two NgbDatePicker in my component: input( type=”text”, ngbDatepicker, #d=”ngbDatepicker”, [readonly]=”true”, formControlName=’startDate’, (dateSelect)=’setNewMinDate($event)’, ) input( type=”text”, ngbDatepicker, #e=”ngbDatepicker”, [readonly]=”true” formControlName=’endDate’ ) and this handler: @ViewChild(‘e’, {static: false}) endDateComponent: Query; setNewMinDate(e: NgbDateStruct) { const minDate: Moment = moment(e.year + ‘-‘ + e.month + ‘-‘ + e.day); this.createAnnForm.value.endDate = minDate.toISOString(); this.endDateComponent.navigateTo(e); } Form model works with ISO…

Details

How to compile a angular component or template in the memory without injecting in the view and get the innerHTML?

I want to compile component A in the component B memory without rendering it into the dom. then i should be able to get the innerHTML of the component A. Component A – has static structure and dynamic content <div #componentA>Component A</div> Component B – wants to compile component/template A and get the innerHTML. @Component({…

Details