Creating a Bubble Chart

This is the dataset I am using and in code it is named as this.meds

I am trying to create a bubble chart using angular 6 but there is an error of substring. But, what I think is that “cause” is unable to be recognize, the one before substring, due to which there is no visualization to be shown. Also, I think the “cause” and the “prescription” is also unable to be recognized even though it didn’t show any error. Also, the data I am retrieving is by using python from the mongodb database. And the dataset is shown in the attached picture. The code is given below:

renderChart(){ this.get_meds().subscribe((medicines) => {  this.meds = medicines; let height = 400; let width = 600; let color = d3.scaleOrdinal(d3.schemeCategory10);  let bubble = d3.pack()   .size([width, height])   .padding(1.5);  let svg = d3.select('#chart')   .append("svg")   .attr("width", width)   .attr("height", height)   .attr("class", "bubble");  let nodes = d3.hierarchy(this.meds)   .sum(function (d: any) {     return d.prescription;   });  let node = svg.selectAll(".node")   .data(bubble(nodes).descendants())   .enter()   .filter(function (d) {     return !d.children   })   .append("g")   .attr("class", "node")   .attr("transform", function (d) {     return "translate(" + d.x + "," + d.y + ")";   }).style("fill", function (d, i: any) {     return color(i);   });  node.append("title")   .text(function (d: any) {     return d.cause + ": " + d.prescription;   });  node.append("circle")   .attr("x", function (d) { return d.x; })   .attr("y", function (d) { return d.y })   .attr("r", function (d) {     return d.r;   })   .style("fill", function (d, i: any) {     return color(i);   });  node.append("text")   .attr("dy", ".2em")   .style("text-anchor", "middle")   .text(function (d: any) {     return d.cause.substring(0, d.r / 3);   })   .attr("font-family", "sans-serif")   .attr("font-size", function (d) {     return d.r / 5;   })   .attr("fill", "white");  node.append('text')   .attr("dy", "1.3em")   .style("text-anchor", "middle")   .text(function (d: any) {     return d.prescription;   })   .attr("font-family", "Gill Sans")   .attr("font-size", function (d) {     return d.r / 5;   })   .attr("fill", "white");  })} 

This is it.

Creating New Folders using Windows Explorer is very slow in SharePoint 2013

We have a SharePoint 2013 environment upgraded from SharePoint 2010. When working with Windows Explorer, users are able to navigate the folders normally without any issues. However, if a user tries to create a new folder from inside Windows Explorer, the process takes up to 30 seconds to complete and most of the time through the process the window shows “Not Responding”. However, after that the folder is created normally. We did not face this issue in the previous SharePoint 2010 environment.

I have tried the various suggested solutions online like disabling “Automatically detect settings” in IE but that did not fix the issue. I also tried accessing one of the servers directly (i.e. not through NLB IP) and tried opening with explorer from inside the server and had the same behavior. The problem is only with creating folders.

Our environment is SharePoint 2013 with Windows Server 2012 R2. Our users are using IE9.I have also tested on IE 11 but the issue is also there.

Any idea what might be causing the problem?

Thank you.

Creating a child page with the parent set as the front page results in strange permalink

I’m not sure if this is a bug by the theme author but when I try to create a sub page (child page) with the front page as the parent, the resulting permalink includes the name of the template. This only happens when the parent of the page is set as the front page.

So for example, I have “Work” set as the front page. When I try to create a child page with “Work” as the parent, the permalink turns into this: https://example.com/template-name/pagename

But even when I don’t specify a template, the template name still gets inserted into the permalink.

I would like it if the permalink became this: https://example.com/work/pagename

I tried reaching out to the theme author but he is unresponsive. Any idea what I can do to fix this?

Creating a body for the spirit of a magic item?

Okay so In the campaign I’m currently playing in the party found a magic sword (Sun Blade). The sword has it’s own personality, spirit or soul whatever you’d call it. Anyway the group didn’t really need the sword so we just kinda ended up talking to it a lot. In our last session we thought it would be an idea to try give this sword it’s own body.

I thought maybe with the clone spell we could create a body and then try transfer the soul of the sword in to it but I don’t believe this is possible.

My question is there a way we can achieve this with some sort of spell or other magic item maybe?

Creating instance, with configurations array and dependencies

I’m doing a small library and wanted to know the best approach to allow for the using of configurations, and, at the same time, the injection of dependencies.

I was thinking of, making a static “getInstance” method that would get an array of configurations, and would return an instance.

This getInstance passed to the constructor the configurations, and injects the dependency instances by separate setter methods. Something like this:

/**  * @param array $  configs  * @return Chunker  */ public static function getInstance(array $  configs) {     $  instance = new Chunker($  configs);      $  instance->setJsonHelper(new JsonHelper());     $  instance->setFileHelper(new FileHelper());      return $  instance; } 

Does this approach make sense?

Thanks.

Error during running mysqldump for creating tar archive

I created mysqldump for creating tar archive but every time I received notice tar: Cowardly refusing to create an empty archive Using gzip created archive normally but with tar I can’t move forward

mysqldump –all-databases –single-transaction –quick –lock-tables=false > /var/thg/vmest/full-backup-$ (date +%F).sql | tar -czvf /var/thg/vmest/full-backup-$ (date +%F).sql.tar.gz

creating beautiful business card design for $1

hi,I am professional graphics designer. I will give you beautiful and unique design business card. Features: ★ 300 Dpi resulation ★ CMYK Color use ★default size(3.25/2 inch without bleed) ★delivery very fast ★2 side concept ★unlimited revesion ★24/7 support ★ print ready card design ★ file format: JPG/PNG/PDF ★ source file: AI/PSD If you have any question,please inbox me before placing order. Order me soon

by: ahonabd
Created: —
Category: Business Card Design
Viewed: 194


Architectural principles for creating a large-scale email server that doesn’t get blacklisted

I am considering what it takes to implement an email server. Google Cloud basically doesn’t allow you to send emails at scale (they block the email ports pretty much), though it sounds like you could receive email. AWS on the other hand allows you to send emails for about $ 1 per 10k. This sums up some other SMTP services like SendGrid, and the costs involved.

I am aware (vaguely) that there are lots of problems Internet Service Providers (ISPs) want to prevent, like email spam. It sounds like they have IP blacklists, and somehow intercept the emails and can figure out if they are spam by checking their content. Somehow also they get access to abandoned email accounts and check who is emailing there (I have no idea how this works, but if there are some helpful links I’d love to know, though not relevant for the question). Basically, the ISP uses all kinds of techniques to figure out if your email service is spammy, so they can block your IP and shut it off. I don’t see why this needs to happen at the ISP level, but that’s beside the point.

What I’m wondering about is how to architect an email server so as to not get black listed, and to have it “work” 24/7, for years and years without interruption. Say I want to implement a service like Gmail or SendGrid. I’m wondering what measures you should take to architect an email server. That is, what the best practices are architecture-wise to create a successful email server.

Specifically where I’m at currently is, it seems using Amazon SES is the best option. It is the cheapest by far and doesn’t have any bells and whistles. Otherwise you would have to buy your own hardware and build your own cloud if you wanted to get any cheaper or lower level I’d imagine, and buy your own IP addresses. But short of that, using AWS SES sounds like a good option.

They give you the ability to use dedicated IP addresses, and as they state:

most email certification programs require you to have dedicated IPs because they demonstrate your commitment to managing your email reputation.

So email server architecture principle 1, have dedicated IP addresses. But I don’t want to do this just yet and then get blacklisted for an unknown reason, which brings me to the crux of the question. How not to get blacklisted. Given this is a service like Gmail or SendGrid, which could be sending millions of marketing emails and millions of personal emails, from millions of different email accounts, every day. I don’t see how to tell if I am putting the right things in place for the email server to be top quality and to potentially be “certified” (not sure what email server certification really is or if it’s a thing, Google search doesn’t reveal anything, but AWS mentions it). That is, what the high level things are that you should put in place to guarantee that all emails will always get delivered (or all emails from all “good” email accounts on your system get delivered). If it’s not possible to guarantee this, then I’d like to know why not, and the answer could just be tailored to whatever is closest to a guarantee that we can get.

Basically, the architectural measures to put in place for an email server to consistently deliver email without being blocked.

I am not (for this question) considering anything about scaling the email server or building the email server itself, just the architectural best practices to prevent being blacklisted.

From my understanding so far, some of the initial principles are:

  1. Have a dedicated IP address. (Not sure if you should just have one, or if you can have 2 or 3, or 100).
  2. Don’t send spam.

That’s all I can think of. For (2), this means you have to have good spam filters in place, and other security measures such as verifying that there is a person behind the email account, etc. But for (2) as well, I am unsure how to handle the problem of false negatives. That is, some users might send 100+ individuals a day, maybe even a few mass marketing emails like on those “get rich with adwords” marketing sites with email lists in the 10’s of thousands. I would like to know if purely the volume of emails causes a red flag, and how to get around that. Then the content, just want to make sure this is purely based on in-house spam filters, and that the ISP wouldn’t block that kind of stuff.

If this is a broad topic, I would like to keep it narrowly focused. I imagine one part of this is to learn more about email spam prevention, which I will do. So this question doesn’t need to cover the spam stuff in any detail. To keep it narrowly focused, I’m wondering what architectural measures should be put in place not to be blacklisted. This might include (just making this up):

  • Have a fixed number of dedicated IP addresses, less than x number.
  • Contact some ISP providers and tell them manually (on the phone even) about your business goals.
  • Implement spam filters to prevent spam going out in the first place.
  • If you have geographically distributed email servers, perhaps something there as well.
  • Programmatically send the abandoned accounts or closed accounts to the ISP for checking.
  • Give access of ISP to some other stuff perhaps, by manually creating an API integration and partnership or something.
  • Associate phone numbers with the accounts.
  • etc.

I can understand how to implement an email/SMTP server, and send/receive messages at scale. So architecturally that makes sense. What’s missing in the picture is the architectural components to prevent being blacklisted at this sort of scale.

To put it succinctly, I’d be interested to know how Gmail and SendGrid avoid getting blacklisted, but that’s probably proprietary 🙂