external

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

对着背影说爱祢 提交于 2019-11-26 19:11:01
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 a submodule and adding my own external as a remote repo. Also once this is setup, if I push / pull to my own remote, will the external remain intact? You have a project -- call it MyWebApp that already has a github repo You want to use the jquery repository in your project You want to pull the jquery repo into your project as a submodule . Submodules are really, really easy to reference and use.

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

独自空忆成欢 提交于 2019-11-26 17:29:03
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 the screen, and when i hold down the button, i can scroll the document too. If i release the button, i can't scroll it. So, if i open the document with external app, my button disappears, and the sensorManager works neither. Have someone any idea to solve this problem. Or have someone any idea, how to scroll the document, opened in an external app, with my phones orientation? (Sorry for my

Access PHP var from external javascript file

心不动则不痛 提交于 2019-11-26 15:19:21
I can access a PHP var with Javascript like this: <?php $fruit = "apple"; $color = "red"; ?> <script type="text/javascript"> alert("fruit: " + "<?php echo $fruit; ?>"); // or shortcut "<?= $fruit ?>" </script> But what if I want to use an external JS file: <script type="text/javascript" src="externaljs.js"></script> externaljs.js: alert("color: " + "<?php echo $color; ?>"); Don You don't really access it, you insert it into the javascript code when you serve the page. However if your other javascript isn't from an external source you can do something like: <?php $color = "Red"; ?> <script type

Can I load external stylesheets on request?

空扰寡人 提交于 2019-11-26 14:38:41
$.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 stylesheet when required? Like for example when I use lightboxes (inline popups) on my site, I want to avoid loading lightbox JS and CSS files onload, unless requested by the user. Thanks Paul D. Waite Yup: if you create a <link> tag linking to a stylesheet and add it to the <head> tag, the browser will load that stylesheet. E.g. $('head').append('<link rel="stylesheet" type="text/css" href=

How to style SVG with external CSS?

戏子无情 提交于 2019-11-26 14:23:22
I have several SVG graphics I'd like to modify the colors of via my external style sheets - not directly within each SVG file. I'm not putting the graphics in-line, but storing them in my images folder and pointing to them. I have implemented them in this way to allow tooltips to work, and I also wrapped each in an <a> tag to allow a link. <a href='http://youtube.com/...' target='_blank'><img class='socIcon' src='images/socYouTube.svg' title='View my videos on YouTube' alt='YouTube' /></a> And here is the code of the SVG graphic: <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet href=

How do you cancel an external git diff?

ぐ巨炮叔叔 提交于 2019-11-26 13:53:24
问题 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 launches 300 vimdiffs sequentially, how do I abort it? 回答1: If stopping the process is not enough, killing the shell itself (in which you launched the git diff ) might be more effective. See also Git Diff with Vimdiff Not being ready to go full speed into using vimdiff (I’m just new to it), I put the following

eclipse, refresh files edited by external editor

两盒软妹~` 提交于 2019-11-26 13:03:26
问题 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 shortcut to refresh all the modified files in eclipse. 回答1: Perhaps you want to check Preferences > General > Workspaces > Refresh using native hooks or polling . You can see that the eclipse refreshes the file you edit with external editor (like vi, emacs, etc) when you check the option. 回答2: On the

Open external links in the browser with android webview

怎甘沉沦 提交于 2019-11-26 12:40:37
问题 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 CustomWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if(url.contains(\"message2space.es.vu\")){ view.loadUrl(url); return true; }else{ return super.shouldOverrideUrlLoading(view, url); } } } 回答1: The problem is you need to send an

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

你。 提交于 2019-11-26 12:06:06
问题 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 location \'/user/data\'; I do not want all the files in the /user/data directory to be used as part of the table. Is it possible for me to do the following? location \'user/data/*.csv\' 回答1: I came across this thread when I had a similar problem to solve. I was able to resolve it by using a custom

Log4Net config in external file does not work

倖福魔咒の 提交于 2019-11-26 11:57:19
问题 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: ... <section name=\"log4net\" type=\"log4net.Config.Log4NetConfigurationSectionHandler, log4net\"/> ... <log4net configSource=\"Log.config\" /> ... And in the Log.Config file (same directory as the App.config) we have: <log4net> <appender name=\"General\" type=\"log4net.Appender.FileAppender\"> <file