FAQ Database Discussion Community


OSX C++ Xcode: Pasting long input into console gives upside down question marks

c++,import,cin,getline,questionmark
We've made a program that takes a long string of tab-delimited input pasted into the console window and splits it up into the correct variables. However, lately with some long strings of metadata, a bunch of upside down question marks have appeared - sometimes after what has been pasted in,...

Python package/module import functions from sub packages

python,function,import,module,packages
I'm building a python package to do some auditing of systems at work. Thus far I've been able to work with using free floating .py files and and running the main file in the same directory as the module files. At a high level I want to create a package...

Being able to print before declaring. PYTHON

python,import
It's quite straight forward, and I bet it's a noob question. Why is it that the following can print the year BEFORE declaring it, as it is shown in the code from datetime import datetime now = datetime.now() print now.year current_year = now.year current_month = now.month current_day = now.day This...

Python: access variable in a function in another file

python,variables,import,global,local
I have two files: lib.py global var def test(): var = "Hello!" return test.py from lib import * test() print(var) But despite having them in the same folder, when I run test.py, I get the following error: Traceback (most recent call last): File "C:\Test\test.py", line 5, in <module> print(var) NameError:...

CSS @import causes media queries class not work

html,css,css3,import,media-queries
So i have run into something interesting. I like to have my css nice and neat and only want one reference of a style sheet in the <head> so to accomplish this i created a master css file that uses @import to bring in the rest of the style sheets....

How to import directory of .scala files in sbt (unmanaged)?

scala,import,dependencies,sbt
I have a directory that I want to use as a dependancy for an sbt project however its comprised of .scala files which means I can't place it inside a jar (from what I understand) so then how can I use it as a dependancy for my project? (sbt doesn't...

MySQL CSV Import Fails - “Data too long for column 'air_date' at row 1”

mysql,csv,import
I'm trying to import a CSV file into a MySQL table and I'm having all kinds of trouble getting it to work. Here's what I'm trying to do: I am working on a video database and have an existing table with data already in it called episodes. Here's how it's...

OrientDB import CSV is modifying my property name

csv,properties,import,character,orient-db
I'm no expert in OrientDB, and I'm having a problem with an odd character showing up in the command line. Oddly enough, it's in the name of my property. Because the name of the property is different, my queries are breaking. For example, I can't execute SELECT * FROM Class...

SDN4 - ResultProcessingException: Failed to execute request

import,neo4j,spring-data-neo4j-4
I am using Neo4j 2.2.1 and Spring Data Neo4j 4.0.0 and I am trying to import a timetree-like graph (with next, first, last, and child relationships), but with only 2 levels. I save at the root object and I got the following exception (due to the huge size, I omitted...

Neo4j & Spring Data Neo4j 4.0.0 : Importing large datasets

logging,import,neo4j,large-data,spring-data-neo4j-4
I want to insert real-time logging data into Neo4j 2.2.1 through Spring Data Neo4j 4.0.0. The logging data is very big which may reach hundreds of thousands records. How is the best way to implement this kind of functionality? Is it safe to just using the .save(Iterable) method at the...

Connect to database and export to sql script

java,database,import,export
I am looking for some way to connect to a MySQL database and export the structure and data into an SQL script that I could run again to import the data. I am trying to do this using Java but have had no luck finding anything other than hibernates SchemaExport...

Android Studio: How can I add an image in the drawable/res folder?

android-studio,import,jpeg
I tried to copy and paste .jpg file to the drawable folder but i got this errors: E:\Projects\QuizApp\MyApplication\app\build\generated\source\r\debug\com\example\androbo\quizapp\R.java Error:(1452, 32) error: <identifier> expected Error:(1452, 37) error: illegal start of type Error:(1452, 38) error: <identifier> expected Error:(1453, 32) error: <identifier> expected Error:(1453, 40) error: <identifier> expected Error:(1454, 32) error: <identifier> expected...

How to use external .c files with CGO?

c,import,go,cgo
To write some C code in a comment above import "C" is straightforward: // foo.go package main /* int fortytwo() { return 42; } */ import "C" import "fmt" func main() { fmt.Printf("forty-two == %d\n", C.fortytwo()) fmt.Printf("forty-three == %d\n", C.fortythree()) } And it works fine: $ go install $ foo...

Adding jar file to add class in a java project using ant command line

java,android,ant,jar,import
I have looked for hours on the net but could not find an answer to the following question(s)... I have an android project that runs OK using "ant release" command line (for various reasons I cannot use Eclipse nor Android Studio, etc.) on MacOSX. I need to extend a 3rd-party...

Python Relative Imports Only Work With Django

python,import
Hi I use Django frequently and am constantly using relative imports along the lines of from .models import XXX for XXX in a models folder or from . import views for a file named views.py in same directory and it works fine there. But when I create my own Python...

How to to “Fix All Imports” in Android Studio

android,android-studio,import
In NetBeans, to "Fix All Imports" ctrl + shift + i What's the shortcut for the same in Android Studio...

AWS SDK Linker Flags conflicting with imported project

ios,amazon-web-services,import,aws-sdk,linker-flags
I've got an app successfully using the AWS SDK framework, and now I'm trying to import a static library as a homemade framework, sharing code with several of my other projects. The problem is: in order to import my static library, I need to add the -ObjC linker flag in...

Importing a dictionary for word check

java,dictionary,import
I am making a Java project which involves the user to generate random letters and create a word that is worth a lot of points. I was able to create the random letter generator, but I was thinking about when the user creates their word, how could I get my...

importdata to large matrix

performance,matlab,import,xlsx
I have xlsx file which contains 750,000x33 cells. when i tried to: [FileName PathName] = uigetfile('*.xlsx','XLSX Files'); fid = fopen(FileName); T=importdata(FileName); I waited for 1 hour and it didnt finish yet. Is there anything i can do to speed the process? Tried to use xlsread but it didnt work aswell....

A java class can't find an other in the same package

java,class,import,package
i am implementing a java program in ubuntu without an IDE that converts a currency to €, i have 2 classes ConvertiEuro and Valuta both in the same directory (package) called finanza, the class ConvertiEuro uses the class Valuta, when i try to compile Valuta.java it compiles correctly but when...

Cannot resolve method 'add(int, com.example.utkarsh.beatle.app.MainActivity.PlaceholderFragment)

android,android-fragments,import
package com.example.utkarsh.beatle.app; import android.app.Fragment; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.ListView; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class MainActivity extends FragmentActivity { @Override public void onCreate(Bundle...

How can i generate domain model diagrams, and documentation

import,documentation,enterprise-architect,domain-model,generated
I imported my project files into Enterprise Architect, under the Domain Model section. The program imported the files correctly, but it did not create domain model diagrams, so i can generate documentation about it, but it is empty. If i imported the project files under the Class model section, class...

from x(defined in program) import y(defined in program) python

python,python-2.7,import,filenames
I need some assitance since I really have no idea how I can fix this: x="test" y="test2" When I try to import y from x , it says that there is no file with the name "x" (from x import y) Is there any way to import test2 from test...

Spring Data Neo4j 4.0.0 : StackOverFlowError

import,neo4j,runtime-error,stack-overflow,spring-data-neo4j-4
I am using the Spring Data Neo4j 4.0.0 with Neo4j 2.2.1 and I am trying to import a timetree-like object with 2 levels under the root. The saved object is built and saved at the end and at some point of the saving process, I got this StackOverFlow error: Exception...

Import 150 text files to Access as Tables using SQL

vba,excel-vba,csv,import
I have 150 text files in csv format using pipe | as a seperator. the files are in different folders on a network. The filenames are date specific and have a suffix which holds the date. I have created a table which has 3 fields: File Location; File Name excluding...

Import multiple text files to a new row in excel using vba?

excel,vba,excel-vba,import
I have the following code which scans my directory for text files. In my directory there are several text files each laid out like so: Text File: Birmingham France Isle of White Manchester New-Castle I am then trying to import each text file to a new row in excel and...

External jar not importing in Eclipse Project

java,json,eclipse,jar,import
I wish to parse JSON and for that I have downloaded java-json.jar file from this URL. I have added this in Build Path by Right click on the Project Build Path -> Configure Build Path -> Add External jars. Selected the jar and it shows in the "Referenced Libraries" But...

Package does not exist when compiling

java,linux,import,apache-commons
I´ve made a Java Project on Windows and now I want to use it under Linux. Since I am working with Files, I "need" the org.apache.commons.io.FilenameUtils package. Under Windows I am working with IntelliJ, so it manages everything for me. I am sharing the Directory of the Project via VirtualBox...

Importing with package name breaking enum comparison in Python

python,import,enums,package
My friend and I are making chess AIs in Python, but we're running into a mysterious problem with enums. We encode the piece types in an enum like so: Piece.py: from enum import Enum class PieceType(Enum): type_one = 1 ... def recognise_type(my_type): print("Passed ", my_type) if my_type is PieceType.type_one: print("Type...

pgAdmin3 not see database postgresql

database,postgresql,import,pgadmin
I created DB with name "food" in command line in Linux Mint. I would like import dump to db, but I cant did it. My pgAdmin didn't see this db. I try update list of db in pgAdmin, try reinstall pgAdmin, restart server. I cant import dump to db in...

How to capture errors when importing a module in Golang?

import,go
In golang, when I import a module, its init() gets executed (before main() I assume?), it is possible some error is generated in this function. How can I capture these errors and handle them in my own code?

IMPORTXML table with alternating rows

excel,import
I would like to use the Google Sheet IMPORTXML function to import only the '1B' column from this Fangraphs page. I am able to use this function... =importxml("http://www.fangraphs.com/statsd.aspx?playerid=9166&position=C&type=1&gds=&gde=&season=2015", "//tr[@class='rgRow']/td[10]") to import EVERY OTHER row in the table, because the table is split into two classes of 'rgRow' and 'rgAltRow.' However,...

Java import wildcard not importing everything inside package

java,import,awt,actionlistener,wildcard
I'm writing a Java program that has a button with an action listener: JButton button = new JButton("Change"); button.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { label.setText(textField.getText()); } }); At the top of the file, I have these two import statements: import java.awt.*; import javax.swing.*; I know this is...

Importing C++ custom library functions into C#

c#,c++,dll,import,dllimport
I currently have a large C++ library that I need to incorporate into a C# project. I was successful in using DllImport to get access to some functions from my library, like this: [DllImport("MyLib.dll")] public static extern int SampleFunction(string param); However, I can't seem to figure out how to make...

long text file to SAS Dataset

import,sas,large-files
I am trying to load a large text file(report) as a single cell in SAS dataset, but because of multiple spaces and formatting the data is getting split into multiple cells. Data l1.MD; infile 'E:\Sasfile\f1.txt' truncover; input text $char50. @; run; I have 50 such files to upload so keeping...

Loop over strings and read in files and save [duplicate]

string,loops,import,sas
This question already has an answer here: Append multiple CSV files in SAS 5 answers I am pretty new to SAS. I have a bunch of files that are in csv format that I want to read into SAS. I need to read them in one-by-one and save them,...

importScripts in webworker, ignore reference exceptions

javascript,import,web-worker
I am trying to import a javascript file in a webworker which contains document references and therefore fails. Is it possible to supress the reference exceptions? I only need a handfull of functions from the javascript file which should not use the document object. Or do I need to rebuild...

Best way to future proof software that opens files with default application interactively

vb.net,excel,class,import,module
I have created a VB .NET application that opens files in their default application - extracts information and returns it to a listview on a form. All of the code is in my main form. The main form has in it Imports Microsoft.Office.Core Imports Microsoft.Office.Interop.Word Imports Microsoft.Office.Interop.Excel If in the...

Load rectangle data from txt file with Python?

python,import,rectangles
I have rectangle data associated with images in a txt file. Each row is for a diff image. First column is image number. 8 17 30 70 80 9 49 25 72 83 10 13 21 75 82 74 25 16 21 Each line is for rectangles represented by: img_number...

Why can Python use underline instead of dot on import

python,import
For example we can use oslo_db to replace oslo.db to import (see the first comment on this patch set: from oslo.db import exception as db_exc YAMAMOTO Takashi: oslo_db And I can't find the oslo_db module in the OpenStack git repo or search for it in pip. What's more, I boot...

Reading multiple space-delimited text files from a folder in R

r,import
I have 100 space-delimited text files in a folder. Each text file has a paragraph of text in it. I wish to extract the data in a data frame with column 1 as File ID and Column 2 as the corresponding text paragraph. This is what I have tried so...

absolute_import not working correctly (in celery project)

python,import,celery
I am trying to setup a simple celery project. As per the official documentation, the layout is as follow: [email protected] ~/dev/debian/debsources/debsources % find new_updater -name "*.py" new_updater/tasks.py new_updater/updater.py new_updater/__init__.py new_updater/celery.py In celery.py, I import celery.Celery this way: from __future__ import absolute_import from celery import Celery In IPython, I can import...

How do I import from a sibling module?

import,rust,use
In src/lib.rs I have the following extern crate opal_core; mod functions; mod context; mod shader; Then in src/context.rs I have something like this, which tries to import symbols from src/shader.rs: use opal_core::shader::Stage; use opal_core::shader::Shader as ShaderTrait; use opal_core::GraphicsContext as GraphicsContextTrait; use functions::*; // this import works fine use shader::*; //...

import to all package member files (package scope)

scala,import,scope,package
I have multiple class files in one package/directory. Similar to this: File 1: package model import same.library class File1Class {}[...] File 2: package model import same.library class File2Class {}[...] etc... Being part of package model already allows each member to access all package model-defined classes, so I was wondering if...

Run Magento 1.9.1.0 Dataflow Import Profile Programmatically

php,xml,magento,import,dataflow
I've tried to get this working, but it can't seem to find a solution. I'm looking to run an existing dataflow profile which has an ID = 3, and has the import file name already configured. All the research I've done, leads to some variation of the following code: public...

How to import the LibGdx sample project

java,import,libgdx
I need to import the project as mentioned in this link. I am not using git, hence I have downloaded the project zip folder and extracted. Could you please let me know how to import this LibGdx sample project ? ...

Use code in a file as content of a SAS macro variable

file,import,sas
I have a series of files, each containing SQL code. I'd like to use SAS to run passthrough queries using that SQL. Since those files are changing often I just want an automated way to keep SAS synched up with these files. I'm thinking that if I could import the...

How to import bencode cleanly?

python,python-2.7,import,importerror,bencoding
I'm trying to use bdecode from the bencode library that is to say this: def bdecode(x): try: r, l = decode_func[x[0]](x, 0) except (IndexError, KeyError, ValueError): raise BTFailure("not a valid bencoded string") if l != len(x): raise BTFailure("invalid bencoded value (data after valid prefix)") return r from types import StringType,...

R: Import CSV with double quotes only on text

r,import,double-quotes
I am trying to import a CSV where the text columns are in double quotes but the numeric columns are not. I have 95 columns in total so I cannot manually modify the columns. (Note: There are commas in the text that I cannot remove) Below is a sample data...

import from a module imported in __init__.py

python,python-2.7,import,packages
I previously had had the following structure (as part of a bigger project): lib/ __init__.py somemodule.py Where __init__.py was empty and somemodule.py included some method def hello(). Now all across my code repository there were numerous imports of that method, specifically from lib.somemodule import hello. For various reasons, I now...

How to solve JDBC - MySQL I occured? [duplicate]

java,android,mysql,jdbc,import
This question already has an answer here: What is a Null Pointer Exception, and how do I fix it? 12 answers When I run the emulator, it woks perfectly with no errors, but when I press the Login button, I get an error. This is my code: public class...

Writing list of import modules in a separate .py file

python,import
I have a long list of import modules, something like this: import x import y . . How can I write these all imports in one line? I come from C programming and see people doing #include "all_lib.h". Is there a equivalent or better pythonic way of doing this ?...

“Cannot resolve symbol baoyz” Android Studio using baoyongzhang's SwipeMenuListView

android,git,import
I've recently downloaded the github repo: https://github.com/baoyongzhang/SwipeMenuListView Which allows to be a SwipeMenuListView. But the "baoyz" in the following import methods is red: import com.boayz.swipemenulistview.SwipeMenu; import com.baoyz.swipemenulistview.SwipeMenuCreator; import com.baoyz.swipemenulistview.SwipeMenuItem; import com.baoyz.swipemenulistview.SwipeMenuLayout; import com.baoyz.swipemenulistview.SwipeMenuListView; import com.baoyz.swipemenulistview.SwipeMenuListView.OnMenuItemClickListener; import...

Bencode in Python with a Debian?

python,import,installation,bencoding
I'm trying to put bencode on my debian in order to decode some bittorrent data but i don't figure-out how to do it from link like this for exemple: https://pypi.python.org/pypi/bencode/1.0 I downloaded the package which correspond to my version that is to say the py2.7 but then i don't know...

read Excel cells into Stata global as variables

excel,variables,import,stata
There are several panel datasets I'd like to join. The observations in these datasets are identified by an id variable and a variable identifying the time the observation was made. All datasets include some variables I need, some I don't need and never the same variables (excluding the id and...

Python import variable from file

python-2.7,import
i have a this 2 file: main.py and abc.py main.py is: dm = [100, 200, 300] import abc abc.abcp(dm) from abc import * pabc = abc.dmabc print pabc abc.py is: def abcp(dm): dmabc = list(dm) dmabc[0] -= 50 print dmabc return dmabc The error is: pabc = abc.dmabc (AttributeError: 'module'...

I'm having trouble understanding importing in python3

python,file,python-3.x,import
I've looked on many sites and many related questions, but following the solutions to those questions still didn't seem to help. I figured maybe I am missing something, so here goes. My project is to create a DM's tool for managing table top role playing games. I need to be...

Neo4j import csv to database

import,neo4j,cypher,load-csv
I want to import Publications from csv to neo4j. And make Query which will select all authors which are authors of publication or at least one author. I have csv file in format Author,Publication Sanjeev Saxena,Parallel Integer Sorting and Simulation Amongst CRCW Models. Hans-Ulrich Simon,Pattern Matching in Trees and Nets....

fonts not working in subdirectories [closed]

css,import
I am using several different fonts for my website, sarkelliancreed.comule.com, and the fonts are not loading in a certain page: sarkelliancreed.comule.com/contact. In all other pages as far as I can tell the fonts are working. I am using @import to get the stylesheets from different fonts. The main stylesheet, main.css,...

Postgres: Combining multiple COPY TO outputs to a postgres-importable file

postgresql,heroku,import,copy,export
I have my database hosted on heroku, and I want to download specific parts of the database (e.g. all the rows with id > x from table 1, all the rows with name = x from table 2, etc.) in a single file. From some research and asking a question...

Importing data from xls,csv to Mysql using Yii 2.0 Framework

import,yii2,mysqlimport
I need to import data from XLS,CSV file into MySql database using YII 2.0 Framework, XLS, CSV files contains datas which should to imported to one table in Mysql DB, Please provide any information to proceed....

The import javax.ws cannot be resolved with GWT on Eclispe

java,eclipse,gwt,import
I want to use some javax annotation on a GWT app. I download javax.ws.rs-api-2.0.jar here, and then include it in my project (Project/Properties/Java Build Path/Libraries/Add External Jars). I clean my project, then I refresh my project and build it. But when I launch the Run as button, I got following...

How does javac automatically compile dependencies of a class

java,import,package,javac
Given the following directory structure: /top |--- wrk |--- pkg |--- A.java |--- B.java Assume that the two files A.java and B.java contain the following code, respectively: // Filename: A.java package pkg; class A { B b; } // Filename: B.java package pkg; class B {...} Assuming that the current...

Importing .kit file (variables) into .kit file (css)

css,variables,import,codekit
I'm using a .kit file to hold variables to make it easy to change up as a template. Importing the .kit file into my index.html file has no issues, but in order for the variables to also work in my css file, I have to import it there as well...

Java import static method but not field

java,import,static
Take the following class for example: public final class ClassName { public static final void TEST() {} public static final Object TEST; } Now, from another file, I want to import static ClassName.TEST(), but not ClassName.TEST. How would I go about importing a method but not an identically named field,...

How do I configure a Magento .csv import with a custom column name?

magento,csv,import
I've got a .csv file which I need to import into a clean Magento 1.9.x instance. It has a column name which is non-standard: 'ShoeSize' Here's the list of column names:...

SQL Syntax error while using python to import values into MySQL Database

python,mysql,sql,import,sql-insert
New to python and MySQL and am teaching myself from internet and books. I am struggling to import values into a database table. I keep getting an error stating that the SQL syntax is incorrect. Using Python 2.7.9 and MySQL Connector 5.6 on a Window 8 machine. Here is the...

API Manager: Set API icon in Swagger 2.0 definition?

import,swagger,bluemix,swagger-2.0
Is it possible to define an API icon in the Swagger 2.0 definition that will be shown on the app developers page? Or is it at least possible to set an API icon in the API Manager UI? I could not find anything related. ...

ReImporting a module after deleting it

python,import
I want to understand how import works I imported a module named funcs as import funcs It printed a line "funcs print" that was in funcs module I deleted it's bytecode file and did del funcs to unimport it I again imported it but this time it didn't print "funcs...

How to import NumPy as a module into Eclipse (PyDev)

python,eclipse,numpy,import
I'm trying to use NumPy in Eclipse, in which I'm using Python 3.4 and PyDev. I have installed NumPy version 1.9.2 (with setup.py) and it works fine in IDLE >>>import numpy as np >>>a = np.array([0,1,2,3]) >>>print(a) [0 1 2 3] but when I do the same thing in Eclipse...

Automatically import REST APIs from GitHub / via API into API Manager?

import,automation,swagger,bluemix,swagger-2.0
Does the API Manager / Bluemix provide an interface (API, hook) to automatically update API definitions when I push Swagger 2.0 API definition changes to a GitHub repository?

MySQL CSV-Import Can't match values of a column

mysql,sql,csv,import
I get the following situation: I imported a .csv into mysql via "LOAD DATA LOCAL INFILE". Everything works fine, but one column is kinda broken. It's filled with "category-names" like 'LFP-Graphic Art' and 'Papiere, Blöcke, Formulare'. If I look for a entry in the table with a simple statement, I...

Haxe add own Modules to path

import,path,haxe,haxelib
I created some Modules from .Net dlls using cslibgen. Now I want to be able to use these modules in my haxe projects by using the import statement. For testing I used cslibgen on mscorlib.dll (to be able to use the system.Console class). Of course, when I make a project...

Python import statements in complex package structures?

python,import
Consider the following hierarchy of three regular packages and their contents: quick ├── brown │ ├── fox.py │ └── __init__.py ├── lazy │ ├── dog.py │ └── __init__.py └── __init__.py Now suppose there is a function jump in module dog and it is needed in module fox. How should I...

Unsure how to resolve this Bottle error (Python)

python,import,bottle
Here are my imports: from bottle import request, route, run, template, static_file, redirect from urllib2 import urlopen, URLError, Request from pymongo import MongoClient from config.development import config import json And here is the offending line (and another line that I think may be causing an issue): game_id = request.forms.get('game_id') request...

Java MySQL and JFrame connection “Cannot convert from boolean to connection”

java,android,mysql,swing,import
public class BancoDeDados { static String url = "jdbc:mysql://localhost:3306/Estoque"; static String pass = "admin"; static String user = "admin"; static Connection conexao = null; public static boolean conecta() throws ClassNotFoundException { try { Class.forName("mysql.Driver"); conexao = DriverManager.getConnection(url, user, pass); //System.out.println("Conectado."); JOptionPane.showMessageDialog(null, "Conectado com Sucesso!"); return true; } catch (SQLException e)...

std::cin working for small number of lines, but not larger ones

c++,list,import,filenames,cin
I'm writing a part of a program that takes a list of filenames provided by the user and stores them in a vector. So far, testing with small numbers of filenames (I've done up to 11) works fine and the program continues, but trying to import 70 or more filenames...

Flask app structure is giving me module headaches

python,import,flask
I'm a newcomer to Python and Flask so I may be completely off with my app's organization. Here's what the directory structure looks like: + venv + bin + include + lib + myapp - __init__.py + config - __init__.py - development.py - production.py + templates - layout.html (more html...

How to Populate a Elastic Search Index from text file?

csv,import,elasticsearch
I'm planning to use an Elastic Search index to store an huge city database with ~2.9 milion records, and use it as search engine at my Laravel Application. The question is: I both have the cities at MySQL database and at CSV File. The file have ~300MB. How can I...

R Importing excel file directly from web

r,excel,import,website
I need to import excel file directly from NYSE website. The spreadsheet url is https://quotespeed.morningstar.com/exportChartDataToExcel.jsp?tickers=AAPL&symbols=126.1.AAPL&st=1980-12-1&ed=2015-6-8&f=m&dty=1&types=1&ver=1.6.0&qs_wsid=E43474CC03753FE0E777D89877788ECB . Tried using gdata package and changing https to http but still doesnt work. Does anybody know solution to such issue? EDIT: Has to be imported to R directly from website (project requirement)...

WhirlyGlobe-Maply Poles

ios,iphone,import,frameworks
i'm trying to use the binary library from WhirlyGlobe-Maply in one of my new projects. The library can be found here: http://mousebird.github.io/WhirlyGlobe/ WhirlyGlobe-Maply poles look always flatten and not even, round like a globe even when I set layer.coverPoles = true; it looks like this: how can i make it...

Python Searching for files and Importing them

python,import
I need to write a function that walks through directories searching for files that end in _prj.py, and then extract some lists from there. The way I'm doing it right now is by using os.path.walk and then importing. My code looks like this: for py_file in files: if py_file.endswith("_prj.py"): print...

Python: importing a module with parameters?

python,logging,parameters,import,module
I have a small logging wrapper module, test.logging: import logging debuglog = "debug.log" f = open(debuglog, 'w') # truncate the file f.close() logger = logging.getLogger('test') logger.setLevel(logging.INFO) formatter = logging.Formatter( '%(asctime)s %(name)s %(levelname)s: %(filename)s:%(lineno)d: %(message)s') fh = logging.FileHandler(debuglog) fh.setLevel(logging.DEBUG) fh.setFormatter(formatter) logger.addHandler(fh) def get(moduleName): return logging.getLogger("test." + moduleName) and some modules...

How to compile dependent .java files located in different packages

java,import,package
I have a folder named pack, inside that there are two folders p1 and p2. inside folder p1 i write the following code in file named sum.java package pack.p1; public class sum{ public static void Display_Sum(int a,int b){ System.out.println("Sum = "+(a+b)); } } then inside folder p2 i write following...

Import stylesheet with php if a certain page is requested

php,css,import,include
I would like to import a css stylesheet in a page depending on a php condition (or other), this condition is based upon the domain URL. For example, if the page loaded is "mydomain.com/about-us" import a "css/about-us.css" file. I have tried with this code, but it does not work. <?php...

Importing data from access to excel using vba

excel,vba,ms-access,import
I am trying to import data from the table "memory" in my access database called "Computer.accdb", which is located on the desktop to Excel. I was able to find a code online and it was able to run but it did not work properly. I added a reference to the...

Can I use limits, orders or date queries with the Ruby DBF gem?

ruby-on-rails,ruby,import,gem,dbf
I'm referring to this gem: https://github.com/infused/dbf I've read the readme and scanned through the API documentation. It feels like I should be able to use ActiveRecord style queries on a DBF Table but it doesn't look like it. I'm hoping to get the last X records, query by date or...

Python How To Import And Use Module With One Line

python,string,url,import,python-import
My question is a fairly straight-forward one. I have this code that loads the natural gas storage numbers from the internet. from urllib.request import urlopen print(int(str(urlopen("http://ir.eia.gov/ngs/wngsr.txt").read()).split("\\n")[4].split(" ")[2])) What I want to know is, how could I do this in one line? More specifically, I was wondering how I could get...

Trouble remembering import rules in Python

python,import,attributeerror
It's been a while since I have used Python and am stumbling already at a simple import! statements.py: str = "hello" main.py: import statements print statements.str Obviously the final program will have more going on, and the statements will be stuff like URLs. For this simple example however with both...

Why my import MessageUI in AppDelegate is not visible within my UITableViewController?

swift,import,messageui
Since Swift files are visible for each others, why my import within Appelegate is not visible for one of my controllers? I get an error there.

Importing a common constant declared pig file in other pig files

import,macros,apache-pig
Objective : Have defined constants (%declare and %default) statements in constants.pig for code modularity and to import the same in other pig files. As per docs : http://pig.apache.org/docs/r0.12.0/cont.html#import-macros, %declare and %default are valid statements in a macro. Issue Faced : Pig is not able to find the declared parameter. Pig...

VBA Acces Database - Clean up code by the use of a loop with 2 variables

arrays,vba,import,ms-access-2010,excel-2010
I'm trying to write a code that imports 4 different files in 4 different databases. I wonder if there is a way to make this much shorter and simpler by using a loop? I tried one, but I can't figure out how to direct one file to a different database....

ImportError: cannot import name suppress

python,import
I am trying to install Taiga on my computer, and for one of the scripts its trying to import suppress but failing. I tried doing this manually: (taiga)$ python Python 3.3.3 (default, Nov 27 2013, 17:12:35) [GCC 4.8.2] on linux Type "help", "copyright", "credits" or "license" for more information. >>>...

How to import googlesamples/android-UniversalMusicPlayer to my android studio

android,github,import
I'm a newer in Android and i wish to import this project to my android studio. How to do it?...

Difference in package importing between Python 2.7 and 3.4

python,python-2.7,import,package,python-3.4
For this directory hierarchy: . ├── hello │   ├── __init__.py │   └── world │   └── __init__.py └── test.py And the Python source files: test.py: if __name__ == '__main__': import hello hello/__init__.py: import world hello/world/__init__.py: print("yes you win") Running test.py with Python 3.4 throws ImportError saying that module world is not...

package java.util.function does not exist? [closed]

java,import
I'm a newbie to Java and now learning The Java Tutorials. When I typed the exactly code in LabmdaScopeTest.java, I encountered the error package java.util.funciton does not exist. The code is as below. import java.util.funciton.Consumer; public class LambdaScopeTest { public int x = 0; class FirstLevel { public int x...

Matplotlib: Import and plot multiple time series with legends direct from .csv

excel,csv,numpy,matplotlib,import
I have several spreadsheets containing data saved as comma delimited (.csv) files in the following format: The first row contains column labels as strings ('Time', 'Parameter_1'...). The first column of data is Time and each subsequent column contains the corresponding parameter data, as a float or integer. I want to...

I'm trying to import an external Redis database (.RDB file) on a Redis installation on Windows but the new data is not being loaded?

database,import,redis,nosql
I have been trying for hours to import a .RDB Redis database file into a new installation on my local machine. I have followed all the steps on Stackoverflow stating to basically drop the dump.rdb into the installation folder (i.e. what it's condifured to read in the .conf file. See...

Importing Python module from another module in the same level

python,import,module,package
I am working on a Python package with the basic structure listed below, and examples of what each Python file contains in curly brackets. MAIN_PACKAGE/ setup.py main_package/ __init__.py { import package1 import package2 __all__=['main_package'] } package1/ __init__.py { import module1 import module2 __all__=['package1'] } module1/ __init__.py { from script1 import...

Typescript - import declarations in an internal module cannot reference an external module

javascript,oop,import,typescript
Whilst practicing TypeScript in VSCode, developing a Todo application, attempting to import the "todo" module, the vscode intellisense generates an error: import declarations in an internal module cannot reference an external module The console also throws an error also: "TodoApp is not defined" Please can anyone help? I presume the...