Categories
User Help Web Apps

G Suite Promo for any country

Looking for new G Suite Account and promo codes for your new business, You are here at right place. Have your account ready to redeem the best offers in market. Best cloud market applications under $5. Unlimited storage and administration for any business at affordable rates. Promo codes available for countries below: USA, Canada, Australia, […]

Categories
Mastering Development

Shiny plot not displaying data

I am trying to build a shiny app to show COVID-19 cases for the 10 worst affected countries with refreshes daily from the ECDC website. I want to be able to limit cases and deaths using slider inputs, and select date periods with date inputs, (all already added). The code is below, but when I […]

Categories
Mastering Development

Dynamic link not getting generated by selecting two corresponding select field

I have two select fields with of which the second is auto filled respect to the value selected in the first select field. upon selecting a value from the second select field a link is show which is hidden. and there is two parts to the javascript one to populate the second select and a […]

Categories
Development

Google Charts Only Render when Browser Zoom At 100%

Webpage contains five tabs of contents; initial tab has an account/profile form on it, three others are records for the account and the fifth one contains Google Charts with Google Analytic data in it. The google charts are nothing complicated; a line chart, a pie chart, and two geo charts. Using Google Chart code and […]

Categories
Development

Python: Passing an array of counties to a function

I am fairly new to Python. I am leveraging Python’s holidays package which has public holidays by country. I am looking to write a function that loops over any number of countries and returns a dataframe with 3 columns: Date, Holiday, Country. Based on my limited knowledge, I came up with this sort of implementation: […]

Categories
Development

what is wrong in syntax with this sql script

drop table classes; CREATE TABLE CLASSES( Class VARCHAR2(30), type VARCHAR2(2), country VARCHAR2(30), numGuns NUMBER(1), bore NUMBER(2), displacement NUMBER(6) ); INSERT INTO CLASSES(Class,type,country,numGuns,bore,displacement) VALUES(‘Bismark’,’bb’,’Germany’,8,14,32000); INSERT INTO CLASSES(Class,type,country,numGuns,bore,displacement) VALUES(‘Iowa’,’bb’,’USA’,9,16,46000); INSERT INTO CLASSES VALUES(‘Kongo’,’bc’,’Japan’,8,15,42000); INSERT INTO CLASSES VALUES(‘North Carolina’,’bb’,’USA’,9,16,37000); INSERT INTO CLASSES VALUES(‘Revenge’,’bb’,’Gt. Britain’,8,15,29000); INSERT INTO CLASSES VALUES(‘Renown’,’bc’,’Gt. Britain’,6,15,32000); SELECT * FROM CLASSES; SAVEPOINT SP1; UPDATE CLASSES SET […]

Categories
Development System & Network

Why are many DNS servers not returning the namservers for my domain correctly?

My website has become widely inaccessible and I don’t know why. Up until recently I have been serving my website through cloudflare, so was using their nameservers. Recently I started using Route 53, so I changed to Amazon’s name servers using my registrar’s control panel, and found that my site quickly became unavailable (I am […]

Categories
Development

Parsing Dynamic Json in Swift

{ “AAPL” : { “quote”: {…}, “news”: […], “chart”: […] }, “FB” : { “quote”: {…}, “news”: […], “chart”: […] }, } How would you decode this in swift. The stocks change but the underlying quote, news, and chart stay the same. Also to mention this json of stocks could be 500 long with unknown […]

Categories
Development

Filter objects with Rest Framework Django API

I have a model Person in Django class Language(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) name = models.CharField(max_length=50) def __str__(self): return self.name class Country(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) name = models.CharField(max_length=50) def __str__(self): return self.name class Person(models.Model): PersonId= models.UUIDField( primary_key=True, default=uuid.uuid4, editable=False) Countries = models.ManyToManyField(Country) Languages = models.ManyToManyField(Language) each person can have (visit) many countries […]

Categories
Development

Dealing with newlines embedded within strings

I’m working with twitter data which fetched in jsonl form. I’ve converted it to json and am trying to convert it to a csv (to import into a program which accepts either csv or MySQL). However, some people put forced new lines into their tweets or bios. This is causing the csv file to have […]