Issue I have a huge navigation with multiple drop-down-menus. On touch-devices I want to disable all links on a node and clone these links as first childs into their sub-menus. The following code works great for the first level, but
Continue readingTag: nested
C++ override of nested class function
Issue I have a class that derives from a base class, which has a nested class. I want to override a nested class’s member function in my derived class and override a base class’s member function. (as shown below) I
Continue readingC++ override of nested class function
Issue I have a class that derives from a base class, which has a nested class. I want to override a nested class’s member function in my derived class and override a base class’s member function. (as shown below) I
Continue readingDjango Template To Display Nested List Of Years And Dates
Issue I have in my view the following code… dates = Article.objects.dates(‘date’, ‘month’).order_by(‘-date’) Which generates the following list of dates… [ datetime.date(2016, 3, 1), datetime.date(2016, 1, 1), datetime.date(2016, 1, 1), datetime.date(2015, 2, 1), datetime.date(2015, 2, 1), datetime.date(2015, 1, 1), datetime.date(2015,
Continue readingHow to run embedded function
Issue I am setting up a small script for a team of exchange admins at our MSP, the script consists of a 4 main functions and within these functions are more functions. I am having some trouble running the embedded
Continue readingSaving R objects to global environment from inside a nested function called by a parent function using mcmapply
Issue I am trying to write an R-script that uses nested functions to save multiple data.frames (parallelly) to global environment. The below sample code works fine in Windows. But when I moved the same code to a Linux server, the
Continue readingPython yfinance – Pulling option chains for multiple tickers and all expirations per ticker
Issue I’m trying to use yfinance to pull option chains per stock from a list of tickers and for all the available expirations per ticker. So my code should loop over each ticker, get expiration dates, loop over each date,
Continue readingAngularJs, Django RESTful and Restangular: Consuming an array of hyperlinks
Issue I’m having trouble configuring restangular to consume a list of api urls in my response object. Currently, my object response looks like: { folders: [‘http://localhost:8000/api/folder/1’, ‘http://localhost:8000/api/folder/2’, ‘http://localhost:8000/api/folder/3’] } but i want it to return the folder objects { folders:
Continue readingNested lookup types in TypeScript
Issue Given type type X = { a: { b: { c: string; }; }; }; I would expect type Y = { [k in keyof X]: { [j in keyof X[k]]: X[k][j][‘c’]; }; }; to give me { a:
Continue readingTypescript optional property type not working on nested prop when it's an array of another type
Issue I made a type that makes all nullable properties optional, even nested ones but for some reason it doesn’t work when given an array of another type. Which is weird because it works when the array is "unwrapped" in
Continue readingHow to import nested interfaces in typescript
Issue It Typescript when I import nested interfaces the predictatext in VS code shows me items in the high level interface but not in the nested one. There is a [key:string] in the "Example" interface does this mean I cannot
Continue readingpython selenium, cant retrieve text of xpath
Issue Im struggling with scraping a few pages … it happens when the structure of the page implies a lot of nested divs… Here is the code page: <div> <section class="ui-accordion-header ui-state-default ui-corner-all ui-accordion-icons" role="tab" id="ui-id-1" aria-controls="ui-id-2" aria-selected="false" aria-expanded="false" tabindex="0"><span
Continue readingNested Dropdown Select Input
Issue Is there a way to create a nested select input field using only html? For example I would have a dropdown with 4 options (categories) but each of those 4 options will have another 2 options(subcategory) inside. e.g. I
Continue readingMatch generic nested object type in Typescript
Issue Suppose I have a nested object type for defining, let’s say, a user: type TestUser = { name: string; email: string; houses: { address: string; rooms: { floor: number; color: string; connectedTo: { id: number; }[]; }[]; doors: {
Continue readingHow to apply CSS to nth nested element?
Issue I’ve got this structure in my HTML and I’m trying to apply some css to the last element of class target but I can’t figure out how to do it or if it is possible. It seems like when
Continue readingMatch generic nested object type in Typescript
Issue Suppose I have a nested object type for defining, let’s say, a user: type TestUser = { name: string; email: string; houses: { address: string; rooms: { floor: number; color: string; connectedTo: { id: number; }[]; }[]; doors: {
Continue readingAngular JS ng-class-odd in nested ng-repeats
Issue I’m trying to develop a very generic table outputter – no set number of rows or columns. As such, I’ve got nested ng-repeat attributes, as such: <table> <tr ng-repeat="row in rowList"> <td ng-repeat="col in colList">{{printCell(row,col)}}</td> </tr> </table> It’s working
Continue readingEmail body content jumbled if report has nested tables in it
Issue I am processing raw data with powershell then populating hash tables. Then i am generating report out of hash table. I am generating HTML file as a report. This HTML file looks well if i use any browser but
Continue readingSpecifying a html nest structure in Python
Issue I am trying to scrape data from the following website https://www.ecfr.gov/on/2022-04-08/title-21/chapter-I/subchapter-E/part-556/subpart-B/section-556.50 Note that there is a nest structure (Tolerances -> Cattle -> Liver and muscle). This is also one of many sections in this legislation. There is a "Developer
Continue readingSpecifying a html nest structure in Python
Issue I am trying to scrape data from the following website https://www.ecfr.gov/on/2022-04-08/title-21/chapter-I/subchapter-E/part-556/subpart-B/section-556.50 Note that there is a nest structure (Tolerances -> Cattle -> Liver and muscle). This is also one of many sections in this legislation. There is a "Developer
Continue readingTypescript get all values of a property from a nested object
Issue I have a nested object: { id: 240, name: ‘FY1 2022’, children: [ { id: 241, name: ‘Q1 2022’, children: [ { id: 242, name: ‘Jan 2022’, }, { id: 243, name: ‘Feb 2022’, }, { id: 244, name:
Continue readingTypescript get all values of a property from a nested object
Issue I have a nested object: { id: 240, name: ‘FY1 2022’, children: [ { id: 241, name: ‘Q1 2022’, children: [ { id: 242, name: ‘Jan 2022’, }, { id: 243, name: ‘Feb 2022’, }, { id: 244, name:
Continue readingHow to properly handle errors for custom message?
Issue I write a function that check the errors, and than i use ngIf to display (or not) a custom text. this way: // ts handleError = (controlName: string, errorName: string) => { return this.form.controls[controlName].hasError(errorName); } // html <mat-error *ngIf="handleError(‘tipo’,
Continue readingLook for Nested XML tag with Regex
Issue This is my first post here, hoping to get some response. I’ve read through few similar posts and consensus is not to try parsing xml/html with regex but what I’m asking seems to be easier than the ones on
Continue readinghow to wait for children load to complete when expanding a dynamically-loaded nested tree node
Issue I am quite new to angular, so I’m sure I am just missing something fairly straightforward here, but I haven’t found an example anywhere of what I am doing to answer my question. I am successfully dynamically loading branches
Continue readingDynamic nested Material menu from json object in Angular 5
Issue How to create dynamic nested menu from json object? I started using Angular Material Design today for the first time and I’m trying to create nested menus using material design. The documentation is pretty straight forward for static stuff.
Continue readingNesting *ngfor. I need to populate subtasks under the parent task in Angular.io
Issue stackblitz: https://stackblitz.com/edit/angular-xk9nw6?file=src%2Fapp%2Ftable%2Ftable.component.html I have a json file with tasks that have a property of subtasks that have the same properties types as their parent tasks. when a parent task is clicked, the child subtasks need to be appended to
Continue readingHow to remove content in nested tags with BeautifulSoup?
Issue How to remove content in nested tags with BeautifulSoup? These posts showed the reverse to retrieve the content in nested tags: How to get contents of nested tag using BeautifulSoup, and BeautifulSoup: How do I extract all the <li>s
Continue readingAngularJS UI Router URL parameter vanishes when changing states
Issue I am attempting to change the state of my AngularJS application via a button click using UI Router. When I press the button, the desired information is sending correctly, however, when the state changes, the URL parameter is vanishing.
Continue readingGetting error while click on a link using angular.js ui-router
Issue I am getting the following error while to click on a link using angular.js. Error: Error: Could not resolve ‘.profile?p_i=3’ from state ‘dashboard.profile’ at Object.t.transitionTo (angularuirouter.js:7) at Object.t.go (angularuirouter.js:7) at angularuirouter.js:7 at angularjs.js:146 at e (angularjs.js:43) at angularjs.js:45 I
Continue readingAngular 2 – Mark nested formbuilder as Touched
Issue I have the following problem: in my application I havea huge form with nested formbuilder in it, it works great and everything but when the user submits the form I want to mark the full form as Touched (to
Continue readingMeteor Angular 2 FormBuilder two nested Array Objects
Issue I could use some help creating a Meteor Angular2 form with 2. level nested Object Array. Im new to Angular 2 and i dont know how to handle this. My Code so far: games.model.ts import { CollectionObject } from
Continue readingHow to access the property of objects obtained after a forEach?
Issue I receive from the backend an array of nested objects, I go through them to modify values and filter according to conditions I need for my application const data = this.market; data.forEach(function(item: any, i) { if (item.functional_id === ‘cool’)
Continue readingForm nested nested Json Html and Angular
Issue I encounter a problem when I want to input data from an html form into a nested JSON object. Example JSON: { "id": 6, "firstName": "Joanna", "lastName": "Walec", "salary": 5000.0, "department": "Analytics", "vacation": false, "enabled": true, "address": { "id":
Continue readingConvert an array of flat objects to nested objects
Issue I have the following array, which is flattened, so I want to convert it to the nested array. const data = [{ "countryId": 9, "countryName": "Angola", "customerId": 516, "customerName": "CHEV", "fieldId": 2000006854, "fieldName": "A12" }, { "countryId": 9, "countryName":
Continue reading