import Questions

6

Solved

On IntelliJ Java IDE when I import a class using the keyboard shortcut or take the suggested import, IntelliJ imports the whole package, e.g. public static void main(String[] args) { List list =...
Lac asked 6/10, 2014 at 22:42

2

Solved

I have a Node CLI program with some dependencies and various of its own modules imported via relative file paths. I would like for the code to be able to read its own package.json file, but I can't...
Jorgenson asked 27/7, 2023 at 15:52

15

Solved

I'm having a hard time understanding how module importing works in Python (I've never done it in any other language before either). Let's say I have: myapp/__init__.py myapp/myapp/myapp.py myapp/...
Dissent asked 21/2, 2012 at 18:27

3

Solved

Just curious, I tried from __future__ import *, but I received this error: File "<stdin>", line 1 SyntaxError: future feature * is not defined Well, that makes sense. A __future__ import ...
Eutrophic asked 29/7, 2016 at 1:20

8

Solved

I have the following function in a C++ DLL extern "C" __declspec(dllexport) bool Exist(const char* name) { //if (g_Queues.find(name) != g_Queues.end()) // return true; //else // return false; ...
Innocency asked 5/1, 2011 at 20:31

4

Hi I'm building my own package and I have a question on __all__. Are there any neat way to define __all__, other than explicitly typing each and every function in the module? I find it very tedious...
Silversmith asked 12/4, 2021 at 11:7

0

Based on this I use following code to start in memory ldap server // Create the configuration to use for the server. InMemoryDirectoryServerConfig config = new InMemoryDirectoryServerConfig("...
Agribusiness asked 21/7, 2023 at 14:59

2

Solved

When running the statement from __future__ import annotations I get the following error: Traceback (most recent call last): File "/usr/lib/python3.5/py_compile.py", line 125, in compile _opti...
Fireplace asked 19/10, 2018 at 9:39

5

I'm used to importing google fonts in css files and then using the font-family property. But I want to utilize the "built-in automatic self-hosting" provided by @next/font. @next/font in...
Pacifism asked 22/12, 2022 at 10:40

3

Solved

This is the situation. I'm using Python 3.6 I currently have the next folder organization: /MainProject __init__.py /Folder1 pyscript1.py pyscript2.py __init__.py /Folder2 pyscript3.py __...
Nasia asked 11/7, 2018 at 23:19

4

Solved

I am trying to import the files using custom aliases following the nextjs documentation. My current approach is from import Header from '../../../components/Header'; to import Header from '@compon...
Afghan asked 7/7, 2020 at 15:18

12

Solved

I have a database Un-zipped size 50mb zipped size 7mb So when I try to import the database zipped(7mb) after few minutes it is throwing this error: Script timeout passed, if you want to finish ...
Unwish asked 12/9, 2017 at 11:37

3

Solved

I want to split my code into multiple subdirectories of src. Example: src main.rs sorting_algorithms bubble.rs bubble.rs contains a function bubble_sort; how do I import it to the main.rs?
Padauk asked 19/11, 2019 at 14:5

3

how do i import data into mongodb from sql server? i have these tables in sql database with following columns States, Cities, CityAreas States Id Name Cities Id Name StatesId CitiArea Id Na...
Margoriemargot asked 5/8, 2014 at 12:49

11

Solved

I have a toy Java project set up with Gradle in IntelliJ IDEA 13.1.2. It compiles and runs fine, but the IDE highlights 'google' in import com.google.common.base.Strings; as red and warns "Canno...
Wingate asked 6/7, 2014 at 22:14

1

When I run storybook, my aliases are ignored. It work fine when I run my project. I tried to define all my aliases in the main.js file, but i doesn't work better. Do you know why ? I've already vis...
Gisborne asked 17/2, 2023 at 11:11

2

I'm trying to modify my settings.json file for VSCode to ignore missing imports for my own scripts. As i've learnt I have to set "python.analysis.useImportHeuristic" to true. Code says it...
Bede asked 28/7, 2022 at 0:5

3

Solved

I have a library that I need to import on my code. However, whenever it is imported it outputs several lines of data to the console. How can I suppress the output? Thanks
Streptokinase asked 20/2, 2020 at 16:33

15

Solved

How can I import a CSV file into a MySQL table? I would like for the first row of data be used as the column names. I read How do I import CSV file into a MySQL table?, but the only answer was to u...
Measurable asked 18/6, 2012 at 6:22

24

Solved

How can I access a JSON file in ECMAScript 6? The following doesn't work: import config from '../config.json' This works fine if I try to import a JavaScript file. https://www.stefanjudis.com/sni...
Sibby asked 22/1, 2016 at 10:13

1

I have a repository that I published to a package. I installed this package in another repository and want to use it but I get an error: (where the ... are the name of any package that trying to im...
Taxaceous asked 30/4, 2023 at 20:37

8

Solved

In Ruby, instead of repeating the "require" (the "import" in Python) word lots of times, I do %w{lib1 lib2 lib3 lib4 lib5}.each { |x| require x } So it iterates over the set of...
Fregger asked 15/7, 2010 at 22:28

6

Solved

I have an .mdf file on my local box. I have SQL Server 2008 Express and SQL Management Studio 2008 Express installed on my local box. How in the world do I import this .mdf file as a new database...
Geniegenii asked 27/10, 2010 at 21:35

8

I can't import pyLDAvis. It is installed but for some reason, I can not import it. I tried conda update anaconda pip install --upgrade pip pip install --upgrade jupyter notebook pip install pyLD...
Postdate asked 23/3, 2021 at 8:48

2

I'm trying to install torch-gpu. I have installed cuda 11.1 and installed torch via the command pip3 install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio===0.8.1 -f https://download.pytor...
Shilohshim asked 16/4, 2021 at 9:24

© 2022 - 2024 — McMap. All rights reserved.