11 Years Experience in Website, App, Marketing and Lead Generation Services

Hi Guys,
It's been long since i have last been on this Forum. Honestly, DigitalPoint forum has given a lot to me, this is where i started my career as a Freelancer and later went ahead to setup my company which is now branched out across 3 Cities and a broad clientele of about 800+ Global Clientele. I joined DP 11 years back and it's time to give back to the community.

Sharing a list of skillsets and offerings me and my team has to offer, let me know if i can of any help to anyone.

11 Years Experience in Website, App, Marketing and Lead Generation Services

Lead Generation and Create Email List Of Targeted People for $20

This is JR, an experienced email list creator with using some excellent tools, resources that’d be Reliable. I have been doing really great for my clients over their lead generation projects for the last couple of years. If you are looking to create a list of people that should be matched with the required criteria, don’t hesitate to send me query as well. I am open to discussion and suggestion. I will provide 90 valid and verified leads within this mentioned price/cost. Thanks for viewing!

Created: —
Category: Virtual Assistant
Viewed: 241

Class timetable generation program in C#

As a “fun” project for school, I am attempting to create a timetable generation program which will automatically assign students and teachers to lessons and those lessons to one of 5 periods within a day, with a maximum value for how many periods can have a lesson assigned to them. It will then calculate the timetable for each person and assign them a timetable based off of the main lesson timetable. In my school, each class of students has two lessons for each subject with a different teacher, and there may be multiple sets of classes depending on the number of students.

The data is all housed in a School class, which does all the initial sorting after being constructed. The constructor takes an array of teachers, students, lessons offered by the school and a preferred class size (there will likely be more variables added as more constraints are added). The list of teachers is provided in a format where each teacher has a name and an array of subjects they can teach. The list of students is provided in a similar format, but instead of the array of subjects they can teach, they have an array of subjects they want to learn.

To sort the data initially after the School has been constructed, the subjects offered by the school are looped through and on each loop the teachers or students are looped through, checking whether they can teach/want to learn the said subject. If they can/do, they are added to the subject’s teacher/student lists, and for each teacher teaching the subject a new lesson is created for them to teach.

To log all this data, I loop through each subject and their teacher/student lists, printing each person to the console. I then loop through the lessons for each subject and print those too.

So, I have all the teachers and students sorted, now what do I do next? I know I need to somehow assign each student to a lesson with a teacher and make sure they don’t clash or anything, but I’m finding the whole task a little daunting and haven’t a clue how to tackle this next bit.

Thanks for any help or advice, you can rest assured you’ll have made this 16-year old’s headache a little more manageable.

My C# console project can be found at https://github.com/jacobcxdev/UTC-TimetableGenerator.

kongchen/swagger-maven-plugin enum generation

i’m having hard times generating proper swagger 2.0 yaml documentation using kongchen swagger-maven-plugin. My problem happens when have 2 classes using same enum class.

public enum Enum {    A,B,C }  public class First {    public Enum e; }  public class Second {    public Enum e; } 

This will generate swagger.yaml file containing:

definitions:   First:     type: "object"     properties:       e:         type: "string"         enum:         - "A"         - "B"         - "C"   Second:     type: "object"     properties:       e:         type: "string"         enum:         - "A"         - "B"         - "C" 

However, I would like it to generate just one enum model definition and reference the type in objects’ fields. Something like this:

definitions:   First:     type: "object"     properties:       $  ref: "#/definitions/Enum"    Second:     type: "object"     properties:       e:         $  ref: "#/definitions/Enum"    Enum:     type: "string"     enum:         - "A"         - "B"         - "C" 

Is there any way to achieve this? This way my generated client generates multiple inner enum classes with same values.


JSON flattening with object duplication on array property for CSV generation

I am looking for a way to transform JSON data into a flat “csv-like” data object. In some way, I am looking to “sqlirize” a mongodb collection. I have already check some json flat libraries in NPM but non of them quite solve my problem. I have solved it in my own way but wanted to know if there is a more efficient way.

I have a collection that presents the data through an API in the following way:

[{     "data": {         "name": "John",         "age": 23,         "friends": [{             "name": "Arya",             "age": 18,             "gender": "female"         }, {             "name": "Sansa",             "age": 20,             "gender": "female"         }, {             "name": "Bran",             "age": 17,             "gender": "male"         }]     } }, {     "data": {         "name": "Daenerys",         "age": 24,         "friends": [{             "name": "Grey Worm",             "age": 20,             "gender": "male"         }, {             "name": "Missandei",             "age": 17,             "gender": "female"         }]     } }] 

This is the function that I have created to reflat a safe-flattened json (e.i.: everything is flattened except arrays)

const { cloneDeep } = require('lodash') const flatten = require('flat')  const reflatten = (items) => {   const reflatted = []    items.forEach(item => {     let array = false      for (const key of Object.keys(item)) {       if (Array.isArray(item[key])) {         array = true          const children = Array(item[key].length).fill().map(() => cloneDeep(item))          for (let i = 0; i < children.length; i++) {           const keys = Object.keys(children[i][key][i])            keys.forEach(k => {             children[i][`$  {key}.$  {k}`] = children[i][key][i][k]           })           delete children[i][key]           reflatted.push(children[i])         }         break       }     }     if (!array) {       reflatted.push(item)     }   })    return reflatted.length === items.length     ? reflatted     : reflatten(reflatted) }  const rows = []  for (const item of items) {   const flat = [flatten(item)]    rows.push(...reflatten(flat)] }  console.log(rows) 

The expected (and current) output is the following:

[{     "data.name": "John",     "data.age": 23,     "data.friends.name": "Arya",     "data.friends.age": 18,     "data.friends.gender": "female" }, {     "data.name": "John",     "data.age": 23,     "data.friends.name": "Sansa",     "data.friends.age": 20,     "data.friends.gender": "female" }, {     "data.name": "John",     "data.age": 23,     "data.friends.name": "Bran",     "data.friends.age": 17,     "data.friends.gender": "male" }, {     "data.name": "Daenerys",     "data.age": 24,     "data.friends.name": "Grey Worm",     "data.friends.age": 20,     "data.friends.gender": "male" }, {     "data.name": "Daenerys",     "data.age": 24,     "data.friends.name": "Missandei",     "data.friends.age": 17,     "data.friends.gender": "female" }] 

Although I achieved the expected output, I keep wondering if there are other libraries there or if there is a more efficient way of doing it.

[GET][NULLED] – Master Popups – WordPress Popup Plugin for Lead Generation v2.8.6


[GET][NULLED] – Master Popups – WordPress Popup Plugin for Lead Generation v2.8.6

[GET][NULLED] – Master Popups – WordPress Popup Plugin for Lead Generation v2.8.4


[GET][NULLED] – Master Popups – WordPress Popup Plugin for Lead Generation v2.8.4

Typescript, CRUD Applications, and the generation of resource identifiers

I am currently trying a create a fairly simple, declarative RESTful CRUD framework, whereby I can define a resource type, and have both the API endpoint created, as well as the the functions to Create/Read/Update/Delete the declared resource.

ie. the usage would look a little like this:

interface Student {      name: string;       dob: Date;  }     const {fetchFunctions, initApp} = createContract<Student>(app, "/students");   //Serverside:  const app = express();  initApp(app);   //Clientside      fetchFunctions.post({   //OK.     name: "bob",     dob: "11/11/1911" });   fetchFunctions.post({   //Type error, because dob isn't included.      name: "Bob" });   const student = await fetchFunctions.get("111");  console.log(student.name); //OK.  console.log(student.foo); //Type error, because Student doesn't have foo.  

Where I’m running into an issue is around the generation of IDs, and whether to include them in the resource object itself.

ie. Say I have done GET /students, to get a list of students, then I have to return the ID of the resources somewhere otherwise I am going to have no way to update them.

So either, I could put the ID on the resource:

[    {       id: "123",        name: "Bob",        dob: "11/11/1911",     },     {       id: "234",        name: "Alice",        dob: "12/12/1912",     } ] 

Or on some ‘Resource Wrappers’

[    {      id: "123",       data: {        name: "Bob",         dob: "11/11/1911",       }    },     {      id: "234",       data: {        name: "Alice",         dob: "12/12/1912",       }    } ] 

(Is this even RESTful? , and really, it’s not even different data).

The problem then, is I have to add the ID to the Student interface, and if I want to POST a student (without the ID), then I have to make it optional, and that starts getting messy, (ie. warnings about a possible null id everwhere).

Another solution is that I have two interfaces one Student and one NotYetCreatedStudent that doesn’t have an ID, and I POST the latter instead. This seems kind of tidy in a sense – but I don’t really like the ID of having to create two interfaces for every resource, having a whole second generic type on my functions etc.

This popular Stack Overflow question addresses the difference between POST and PUT, and basically the consensus seems to be that for creating a new resource, you do either:

POST /resource 


PUT /resource/123 

So maybe instead, then I could just not do ‘POST without ID to create a resource’ and instead do ‘generate a UUID on the client side and PUT with ID’ – which is seeming like the simplest solution.

Is there something I’m misunderstanding about RESTful APIs here that would help me solve this problem?

[GET][NULLED] – Master Popups – WordPress Popup Plugin for Lead Generation v2.8.2


[GET][NULLED] – Master Popups – WordPress Popup Plugin for Lead Generation v2.8.2

What is the difference between host and client ssh key generation?

Having read the ssh-keygen man page, i saw the ‘-h’ flag and the following:

ssh-keygen supports two types of certificates: user and host. User certificates authenticate users to servers, whereas host certificates authenticate server hosts to users

I understand the server/client usage, the different storage locations and the certificates are unique, but is there a fundamentally difference?

I.e. If I don’t use the ‘-h’ flag during host key generation, have I made an error that could cause issues?