Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Aalap Prabhakaran

Aalap Prabhakaran

Community Learner
Share
163Questions
161Answers
264.5KViews on questions

git untrack folder-Remove a folder from git tracking

You can follow the following steps and commands to git untrack folder from my git repository without deleting it from my local machine. Step 1. Firstly, you'd need to add the folder path to your repo's root .gitignore file. path_to_your_folder/ Step 2. Remove the folder from your local git tracking, but keep it on…

Devops

Answered Jun 3, 2021 · 12.6K Views Read answer →

Mongoose - Save array of strings

In mongoose schema array of strings, you can pass strings as follows: var personSchema = new mongoose.Schema({ tags: [{ type: String }]The Postman sends the 'array' as the string so for that you can simply verify by inspecting the kind of req.body.tags. So for that refer the following command: console.log(typeof…

Python

Answered May 18, 2021 · 4.8K Views Read answer →

Printing newlines with print() in R

The r print newline function shows you a version of the object from the R level - in this case, it is a character string. You need to use other functions like cat() and writeLines() to display the string.writelines() > writeLines("File not supplied. Usage: ./program F=filename") File not supplied. Usage: ./program…

Salesforce

Answered May 11, 2021 · 948 Views Read answer →

Change size of axes title and labels in ggplot2

To change the size of the axes title and ggplot axis label size, you can use the axis.title and axis.text in the theme function as follows: theme(axis.text=element_text(size=16), axis.title=element_text(size=16,face="bold")) For example: library("ggplot2") ggplot(data = diamonds,aes(x = clarity)) + geom_bar(aes(fill =…

Data Science

Answered May 4, 2021 · 739 Views Read answer →

How to Convert Varchar to Int error?

You'd require to determine exactly what character was in the original string to convert SQL server convert varchar to int. Hopefully you have a copy of the original somewhere. I'm guessing it wasn't actually a full stop even if it displayed as one. This query may help declare @s table ( col varchar(20) not null );…

SQL Server

Answered Apr 24, 2021 · 753 Views Read answer →

Panda's Write CSV - Append vs. Write

Checking the existence of file would be a simple approach, refer the following code: import os # if file does not exist write header if not os.path.isfile('filename.csv'): df.to_csv('filename.csv', header='column_names') else: # else it exists so append without mentioning the header df.to_csv('filename.csv', mode='a',…

Python

Answered Apr 24, 2021 · 698 Views Read answer →

JavaScript - How to get values of input fields?

The JavaScript input text property is used to set or return the value of a text input field. The value property contains either the default value that is present upon loading the element, the value entered by the user, or the value assigned by the script For javascript to get value of input you can use the Aura:Ids to…

Salesforce

Answered Apr 23, 2021 · 679 Views Read answer →

What is Sql Server Maintenance Plan - Best Practices on Tasks and Scheduling?

This is a very common task for all DBAs and the right answer is NOT the same for everyone and for SQL server maintenance plans. A lot of other things, it depends on what you need. Most definitely you don't want to run "Shrink Database" as already suggested. It’s EVIL to performance and the below ref will show you why.…

SQL Server

Answered Apr 22, 2021 · 692 Views Read answer →

How do I drop all constraints from all tables?

You can derive drop constraint SQL server information easily by joining sys.tables.object_id = sys.objects.parent_object_id for those object types. DECLARE @sql NVARCHAR(MAX); SET @sql = N''; SELECT @sql = @sql + N' ALTER TABLE ' + QUOTENAME(s.name) + N'.' + QUOTENAME(t.name) + N' DROP CONSTRAINT ' + QUOTENAME(c.name)…

SQL Server

Answered Apr 22, 2021 · 1.1K Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.