Questions tagged [external]

This tag refers to something that is outside of a particular system. In other words, it is something that is not a part of the main system and therefore can be considered "extra".

Filter by
Sorted by
Tagged with
229 votes
3 answers
99k views

How to set up a git project to use an external repo submodule?

I'd like to create a repo which pulls in a remote repo. For example, let's say jQuery as a submodule: git://github.com/jquery/jquery.git What would be the process of creating a repo with jQuery as ...
Tom's user avatar
  • 34k
219 votes
25 answers
302k views

Find location of a removable SD card

Is there a universal way to find the location of an external SD card? Please, do not be confused with External Storage. Environment.getExternalStorageState() returns the path to the internal SD mount ...
borisstr's user avatar
  • 2,346
117 votes
2 answers
38k views

Piping buffer to external command in Vim

I would like to send contents of the current buffer to stdin of external command (like mail). How do I send a Vim buffer to an external command?
yasar's user avatar
  • 13.4k
95 votes
13 answers
320k views

Android saving file to external storage

I have a little issue with creating a directory and saving a file to it on my android application. I'm using this piece of code to do this : String filename = "MyApp/MediaTag/MediaTag-"+objectId+"....
Android-Droid's user avatar
94 votes
14 answers
84k views

Log4Net config in external file does not work

We are using log4net and want to specify it's configuration in an external config file (as we have done with other sections). To do this we have changed the log4net section in the App.config to: ... &...
Robert Wagner's user avatar
91 votes
13 answers
133k views

Getting the 'external' IP address in Java

I'm not too sure how to go about getting the external IP address of the machine as a computer outside of a network would see it. My following IPAddress class only gets the local IP address of the ...
Julio's user avatar
  • 6,292
84 votes
13 answers
115k views

Docker-compose env file not working

I'm writing as docker-compose file to up MySQL instance and want to use few variable from env file: here are the files actually look like: docker-compose.yml version: '3.3' services: db: image:...
imran ahmedani's user avatar
84 votes
3 answers
88k views

How to get started with svn:externals?

I'm looking for a succinct and well-written tutorial on using svn:externals. I already know how to use them in a basic way myself, but I want a good article that I can link to when answering ...
Joel Coehoorn's user avatar
80 votes
4 answers
85k views

External JavaScript file is not getting added when running on Flask

I have an HTML file named showMap.html: <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-...
Tony's user avatar
  • 1,130
75 votes
5 answers
24k views

Load external JS from bookmarklet?

How can I load an external JavaScript file using a bookmarklet? This would overcome the URL length limitations of IE and generally keep things cleaner.
Justin's user avatar
  • 20.6k
69 votes
8 answers
245k views

How to invoke function from external .c file in C?

My files are // main.c #include <ClasseAusiliaria.c> int main(void) { int result = add(5,6); printf("%d\n", result); } and // add.c int add(int a, int b) { return ...
ProtoTyPus's user avatar
  • 1,312
67 votes
12 answers
108k views

Access PHP var from external javascript file

I can access a PHP var with Javascript like this: <?php $fruit = "apple"; $color = "red"; ?> <script type="text/javascript"> alert("fruit: " + "<?php echo $fruit; ?>"); ...
TunaFFish's user avatar
  • 11.2k
61 votes
4 answers
10k views

Can I emulate svn:externals using mercurial?

We are considering a move from SVN to Mercurial, and have encountered a stumbling block. We currently use svn:externals to automatically pull a common set of libraries into the working directory. I ...
Eltariel's user avatar
  • 1,298
60 votes
4 answers
118k views

Import python module NOT on path

I have a module foo, containing util.py and bar.py. I want to import it in IDLE or python session. How do I go about this? I could find no documentation on how to import modules not in the current ...
Vort3x's user avatar
  • 1,818
58 votes
1 answer
52k views

How do you edit a dependency/external library in android studio? [duplicate]

There is a lot of information about adding libraries and dependencies, but I haven't been able to find any useful information on being able to actually edit a library. I have added https://github.com/...
Micah Simmons's user avatar
55 votes
4 answers
82k views

Open external links in the browser with android webview

I have this code, but not because it works, it keeps opening in webview and what I want is that the links do not belong to my website open in your default browser. Any idea? thanks private class ...
Jaumesv's user avatar
  • 1,075
49 votes
7 answers
66k views

Can I load external stylesheets on request?

$.getScript('ajax/test.js', function() { alert('Load was performed.'); }); .. like the above code which loads an external JS on request, is there something similar available to load an external CSS ...
eozzy's user avatar
  • 67.5k
49 votes
2 answers
52k views

How do you dynamically compile and load external java classes? [duplicate]

(This question is similar to many questions I have seen but most are not specific enough for what I am doing) Background: The purpose of my program is to make it easy for people who use my program ...
Shadowtrot's user avatar
49 votes
2 answers
39k views

Using $compile on external template (templateURL) in Angular directive

I've got a recursive Angular directive that uses a template variable and gets compiled in the link function. Problem is, that my template has gotten really long and out of control and I want to ...
CodyBugstein's user avatar
  • 22.7k
49 votes
7 answers
21k views

Nested/Inner class in external file

I have a class MyClass and an inner class MyNestedClass like this: public class MyClass { ... public class MyNestedClass { ... } } Both classes are very long. Because of that i'd like to ...
Alp's user avatar
  • 29.5k
48 votes
8 answers
199k views

PHP ini file_get_contents external url

I use following PHP function: file_get_contents('http://example.com'); Whenever I do this on a certain server, the result is empty. When I do it anywhere else, the result is whatever the page's ...
arik's user avatar
  • 28.8k
47 votes
6 answers
148k views

Eclipse: How to build an executable jar with external jar?

I am trying to build an executable jar program which depends on external jar downloaded. In my project, I included them in the build path and can be run and debug within eclipse. When I tried to ...
user avatar
40 votes
5 answers
85k views

Adding external JAR to Maven project in NetBeans

When I right click on my Maven project and choose the Add dependency option and I type my external jar's name in query, it is not found. How to add external jar to a Maven project?
SSV's user avatar
  • 860
37 votes
4 answers
24k views

Externalizing Grails Datasource configuration

Grails 1.x allows using external configuration files by setting the grails.config.locations directive. Is there a similar approach available for externalizing the database configuration in Datasource....
miek's user avatar
  • 3,456
36 votes
3 answers
54k views

Can I change a table from internal to external in hive?

I created a table in hive as a managed table, but it was supposed to be external, is it possible to change the table type of the table without losing the data?
George TeVelde's user avatar
34 votes
4 answers
22k views

RAILS link_to external site, url is attribute of user table, like: @users.website

I'm working on a website that allows users to create an account. One of the attributes when creating a user is a users personal website. When I try to use the users website like this: <%= link_to @...
thedeepfield's user avatar
  • 6,178
33 votes
6 answers
24k views

How do I use momentsjs in Google Apps Script?

I'm trying to utilize the momentjs library in Google Apps Script but I'm not clear on how to do so. I'm not sure how to add the library, so obviously running something like the following results in "...
Jared_C's user avatar
  • 659
33 votes
2 answers
17k views

eclipse, refresh files edited by external editor

I currently use emacs to edit .java files and run eclipse. Eclipse doesn't automatically recognize modified files, so I often end up running unmodified application. I wonder if there exists a ...
eugene's user avatar
  • 40.7k
33 votes
2 answers
53k views

How to tackle redirect to an external url in NextJS?

I have in place my next.config.js file with regular redirect rules, all within the same domain and all works fine. But in a specific case, I need to redirect the request from a certain URL (mydomain....
Gilson Viana's user avatar
32 votes
2 answers
84k views

jquery: how to include other .js-files into .js

Is there any jquery plugin (instead of incldeMany) or simple function to include js-files on demand ? for example: $.include('myscript.js'); ?
Heinrich's user avatar
  • 751
32 votes
6 answers
74k views

Python: Create Dictionary from Text/File that's in Dictionary Format

I'd like to create a dictionary from a text file that I have, who's contents are in a 'dictionary' format. Here's a sample of what the file contains: {'fawn': [1], 'sermersheim': [3], 'sonji': [2], ...
Jared's user avatar
  • 878
31 votes
4 answers
49k views

Python - how do I call external python programs?

I'll preface this by saying it's a homework assignment. I don't want code written out for me, just to be pointed in the right direction. We're able to work on a project of our choice so I'm working ...
Henry Edward Quinn IV's user avatar
31 votes
2 answers
39k views

Loading external script with jinja2 template directive

I'm very new to jinja2 and the use of templates in general so I was wondering if there's an easy way to load an external javascript. I was thinking of using: {% block javascript %} <script src=...
kirbuchi's user avatar
  • 2,274
31 votes
2 answers
18k views

Use Jinja2 template engine in external javascript file

I working on a web project using Python and Flask. I was just wondering if I can access parameters sent by python in my external javascript files? It's working well with html files or with js embedded ...
Loric's user avatar
  • 1,678
30 votes
2 answers
156k views

How to call execl() in C with the proper arguments?

i have vlc (program to reproduce videos) if i type in a shell: /home/vlc "/home/my movies/the movie i want to see.mkv" it opens up an reproduces the movie. however, when I run the following program:...
Matias Morant's user avatar
30 votes
4 answers
78k views

How to configure additional classpath in SpringBoot?

I want to make a standalone web application. I have some problems with SpringBoot. My application is one jar file from SpringBoot. But my application was usually needed jdbc driver jar. I want to ...
fightingmamoru's user avatar
29 votes
3 answers
79k views

When creating an external table in hive can I point the location to specific files in a directory?

I have defined a table as such: create external table PageViews (Userid string, Page_View string) partitioned by (ds string) row format as delimited fields terminated by ',' stored as textfile ...
George TeVelde's user avatar
28 votes
4 answers
65k views

Qt Execute external program

I want to start an external program out of my QT-Programm. The only working solution was: system("start explorer.exe"); But it is only working for windows and starts a command line for a moment. ...
btzs's user avatar
  • 1,058
26 votes
4 answers
19k views

Javascript and WebGL, external scripts

Just curious; How do I place my webgl shaders, in an external file? Currently I'm having; <script id="shader-fs" type="x-shader/x-fragment"> #ifdef GL_ES precision ...
Skeen's user avatar
  • 4,662
26 votes
1 answer
1k views

Browserify FullCalendar with external jQuery

I am loading jQuery from a CDN and this error occurs when I try to import FullCalendar into my scripts: Uncaught Error: Cannot find module 'jquery' Here is my script: 'use strict' import $ from '...
rink.attendant.6's user avatar
25 votes
4 answers
107k views

How to open/display documents(.pdf, .doc) without external app?

I want to create a program, that open documents without external app. I need this, because i want to scroll the document with the phones orientation(Pitch and Roll). I create a button on the bottom of ...
KhalDrogo's user avatar
  • 315
25 votes
7 answers
87k views

where is .apk location for apps that are installed on sdcard?

I know that the location for system apps is '/system/app' and the location for user apps is '/data/app'. But I can't find the location of apk for the ones that I moved to/installed on sdcard.
rohitverma's user avatar
25 votes
2 answers
7k views

What is the purpose of `external` keyword in Kotlin?

What exactly is the purpose of the external keyword in Kotlin? I guess it's for JNI like native in Java, but I can't seem to find any actual reference or documentation on this.
maciekjanusz's user avatar
  • 4,770
24 votes
2 answers
5k views

Understanding Eclipse debug source lookup with dynamically compiled and loaded code

Background info: I have this java framework that is meant to run external scripts. To do this, I use a combination of a classloader and the system java compiler to compile .java "script" files that ...
TTT's user avatar
  • 1,982
24 votes
3 answers
8k views

Don't show svn:externals in svn status

I've made one svn:external in my repository. Everything works fine, except the output of the svn status command. In the output there is lot of information I don't need: $ svn st X lib ...
bessarabov's user avatar
  • 11.5k
23 votes
5 answers
50k views

Downloading from external resources is disabled in hibernate dtd

While I am trying to do hibernate configuration I put hibernate dtd in hibernate.cfg.xml file and it is showing an error that downloading from external resources is disabled. Can you please help me ...
Pushp Raj Thakur's user avatar
21 votes
4 answers
45k views

Load variables from external file in PHP

How can I import a variable from an external file? What I want to do is to have a configuration file in which I can write all my website settings and then to import these settings to every file, so I ...
Adrian M.'s user avatar
  • 7,363
21 votes
5 answers
109k views

External SDCard file path for Android

Is it true that the file path to external SDCard on Android devices are always "/storage/extSdCard"? If not, how many variations are there? I need it for my App to test the availability of external ...
Bowie's user avatar
  • 1,002
20 votes
3 answers
12k views

Quick way to transfer "External Tool Configurations" from one Eclipse install to another?

Is there a quick way to transfer the "External Tool Configurations" from one Eclipse install to another? It doesn't seem to offer an import/export setting...
Markus A.'s user avatar
  • 12.6k
20 votes
3 answers
6k views

How do you cancel an external git diff?

I've got vim setup as my external diff tool: [diff] external = git_diff_wrapper #!/bin/sh vimdiff "$2" "$5" Say I have 300 files that have been modified; via bash, I type "git diff". It ...
v2k's user avatar
  • 1,093

1
2 3 4 5
70