Categories
Ask

[ Quebec ] Open Question : I’m an Albertian who may be visiting Quebec soon. What would happen if I did the following?

-Call all the men “f*ggots” and “fat boorish French slobs.” -Call all the women “fat ugly worthless pigs.” -Burn a Quebec flag in front of a crowd. -Tell the people that the French language has no place in Canada. -Go into a a shop and say to the cashier “speak English you F*CKING *SSHOLE.” -Say […]

Categories
Ask Cultures & Groups Other

[ Other – Cultures & Groups ] Open Question : Is it ok not have black friends?

Categories
Ask

[ Hobbies & Crafts ] Open Question : What fabric feels like human skin and where can you buy it?

Categories
Ask

[ Toyota ] Open Question : What is the cost of a catalytic converter?

I have a 2000 Toyota Echo that needs a catalytic converter. How much am I looking to spend on this?

Categories
Ask

[ Other – Careers & Employment ] Open Question : Is something wrong with me? I attract unpaid internships but no decent regular paying jobs?

Im a girl in college and i go on interviews for internships (unpaid or underpaid) and part time jobs. For some reason the unpaid internship employers seem to really like me and i get offers for those. I took two recently and am realizing i cant handle all of it so im planning to back […]

Categories
Development

Reflection using generic types when class is unknown

I’m loading a model with reflection: private void LoadAssemblies() { Assembly assembly = Assembly.LoadFrom(modelDll); var types = assembly.GetTypes(); inputType = assembly.GetType(types.Where(x => x.FullName.Contains(“Input”)).FirstOrDefault().FullName); outputType = assembly.GetType(types.Where(x => x.FullName.Contains(“Output”)).FirstOrDefault().FullName); inputModel = Activator.CreateInstance(inputType); outputModel = Activator.CreateInstance(outputType); inputModel = JsonConvert.DeserializeObject(jsonPredict); } Then I need to call a method with two generyc types var predEngine = mlContext.Model.CreatePredictionEngine<typeof(inputModel), typeof(outputModel)>(mlModel); //here […]

Categories
Development

Install React JS on Cent OS

I am very very new to React JS and have tried to install it on my VPS server that is running Cent OS. Node.js seems to be working, I have build a React project using the following code as a root level user on SSH: npx create-react-app my-react-project cd my-react-project npm start but when trying […]

Categories
Development Heroku

heroku git:remote -a

I’m going along well with Salesforce Trailhead studies for Quick Start: Heroku Connect until I get to the “Prepare the App for Local Development” module. I get to step heroku git:remote -a and expected success too. Instead, I see Error: Couldn’t find that app. Error ID: not_found. I tried all kinds of ideas to overcome […]

Categories
Development

How to pass string as command line arguments while using R CMD BATCH

While using R CMD BATCH in Linux terminal to run my R program, I want to pass a string as command line argument. For example, I want to pass mydir=”/home/test” as a command line argument. I ever tried: R CMD BATCH –no-save –no-restore ‘–args a=0 mydir=”/home/test”‘ test.R, but I failed. Sincerely thank anybody who can […]

Categories
Development

How to sort table by date column

I have a table and I want to sort Date column ascending and descending. I have tried the code below but its not working. Its work when sorting the numbers only. function sortColumn() { var table, rows, switching, i, x, y, shouldSwitch; table = document.getElementById(“example”); switching = true; while (switching) { switching = false; rows […]