Join us in building a kind, collaborative learning community via our updatedCode of Conduct.

Questions tagged [import]

The general process of moving data from an external source into one's platform, program, or data set.

4170
votes
54answers
2.4m views

How do I include a JavaScript file in another JavaScript file?

Is there something in JavaScript similar to @import in CSS that allows you to include a JavaScript file inside another JavaScript file?
1319
votes
37answers
2.2m views

How to import an SQL file using the command line in MySQL?

I have a .sql file with an export from phpMyAdmin. I want to import it into a different server using the command line.I have a Windows Server 2008 R2 installation. I placed the .sql file on the C ...
723
votes
20answers
510k views

In Node.js, how do I “include” functions from my other files?

Let's say I have a file called app.js. Pretty simple:var express=require('express');var app=express.createServer();app.set('views', __dirname + '/views');app.set('view engine', 'ejs');app....
441
votes
8answers
156k views

Quickly reading very large tables as dataframes

I have very large tables (30 million rows) that I would like to load as a dataframes in R. read.table() has a lot of convenient features, but it seems like there is a lot of logic in the ...
425
votes
34answers
387k views

Stop Excel from automatically converting certain text values to dates

Does anyone happen to know if there is a token I can add to my csv for a certain field so Excel doesn't try to convert it to a date?I'm trying to write a .csv file from my application and one of the ...
417
votes
8answers
88k views

When should I use curly braces for ES6 import?

It seems to be obvious, but I found myself a bit confused about when to use curly braces for importing a single module in ES6. For example, in the React-Native project I am working on, I have the ...
408
votes
5answers
115k views

@import vs #import - iOS 7

I am playing around with some of the new iOS 7 features and working with some of the Image Effects as discussed in the WWDC video "Implementing Engaging UI on iOS". For producing a blur effect within ...
361
votes
9answers
118k views

What is the difference between #import and #include in Objective-C?

What are the differences between #import and #include in Objective-C and are there times where you should use one over the other? Is one deprecated?I was reading the following tutorial: http://www....
303
votes
13answers
92k views

Why is using a wild card with a Java import statement bad?

It is much more convenient and cleaner to use a single statement likeimport java.awt.*;than to import a bunch of individual classesimport java.awt.Panel;import java.awt.Graphics;import java....
288
votes
15answers
562k views

How can I import a database with MySQL from terminal?

How can I import a database with mysql from terminal?I cannot find the exact syntax.
284
votes
7answers
83k views

Relative imports for the billionth time

I've been here:http://www.python.org/dev/peps/pep-0328/http://docs.python.org/2/tutorial/modules.html#packagesPython packages: relative importspython relative import example code does not work...
239
votes
5answers
94k views

Change Name of Import in Java, or import two classes with the same name

In Python you can do a:from a import b as cHow would you do this in Java, as I have two imports that are clashing.
233
votes
9answers
476k views

Call a function from another file in Python

Set_up: I have a .py file for each function I need to use in a program.In this program, I need to call the function from the external files.I've tried:from file.py import function(a,b)But I ...
209
votes
12answers
130k views

How can I import Swift code to Objective-C?

I have written a library in Swift and I wasn't able to import it to my current project, written in Objective-C.Are there any ways to import it? #import "SCLAlertView.swift" - 'SCLAlertView.swift' ...
200
votes
9answers
105k views

import .css file into .less file

Can you import .css files into .less files...?I'm pretty familiar with less and use it for all my development. I regularly use a structure as follows:@import "normalize";//styles here@import "...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,