external

Nested/Inner class in external file

 ̄綄美尐妖づ 提交于 2019-12-04 22:14:07
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 seperate them in two different files, without breaking the hierarchy. This is because the nested class shouldn't be visible to the programmer who uses MyClass. Is there a way to achieve that? You can make the inner class package private which means that it will only be accessible from other classes in exactly the same package. This is also done quite frequently for hidden classes inside the standard JDK

How can I trigger controllerless core Magento modules that watch <controller_action_predispatch> in <frontend> in config.xml from external script

若如初见. 提交于 2019-12-04 16:53:04
For background reference SEE: Magento: How do I get observers to work in an external script? I wanted to ask what the preferred method to 'replicate' a frontend controller's action from an external script is. I am creating an external SSO login for Magento EE 1.12. My code exists as the following in a php file. You can test it by creating test.php and replacing my user (185) with whatever your user ID is. Navigate to the page and then again. You will notice you are logged in and out, however in admin it will not show you as being online. Read on... <?php umask(0); require_once 'app/Mage.php';

Redirecting to an external URL in a new tab and performing an action in backing bean at the same time

纵饮孤独 提交于 2019-12-04 14:57:22
I'm working at a jsf application that at a certain time need to open an external page in a new tab, leaving the first page active. I need to find a way to make the application perform, in a single button click: a redirect to an external URL in a new tab an action which disables the button itself in the original page I've tried using an <outputLink /> but it has no action attribute. I've tried using a <commandLink /> but it's unable to redirect outside. I've also tried a <commandLink /> with target="_blank" and a redirection coded in the backing bean: <h:commandLink onclick="submit();" target="

Open external navigation app with PhoneGap

心已入冬 提交于 2019-12-04 13:52:01
I have a phonegap jquery app, I want to create Navigation Event. I have coordiates \ address of location and I want to use appls like Google Nav\Waze\Glympse and others nav apps to open a new navigation to the destination. Example: I have coordinates of "Test 5" street in Los Angeles, Click on the Adrress will launch the Navigation App and Take me to there (outside my application). <a href="#">Test 5, LA</a> or <a href="#">43.2342,-70.4234</a> How can I do it? I solved it but create "href" to Geo Link work simply with "saddr" and "daddr" values just great! geo: href doesn't work in phonegap 3x

Delegate as external class in Objective-C

孤街浪徒 提交于 2019-12-04 13:50:16
I'm creating a simple project for iPhone, using Xcode and Interface Builder. While I understand what a delegate is, I have a problem with using it. I have an UITextField in my interface. It displays keyboard when user taps on it, but I need to program manually how to hide keyboard. It can be done using delegates. So in IB, I'm taking Object from library, giving it's class name as Control1Delegate and then connecting the delegate outlet from my textfield to be this Control1Delegate. I also have .m and .h files for this Control1Delegate class : Control1Delegate.h @interface Control1Delegate :

iOS Open Document with External App from UIWebVIew

无人久伴 提交于 2019-12-04 13:00:06
I have a UIWebView . When a link which contains a document is clicked, I want to open that document in a external app (office, openoffice, etc) but not inside the UIWebView . I know how to do it for emails: - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { if ([[[request URL] scheme] isEqual:@"mailto"]) { [[UIApplication sharedApplication] openURL:[request URL]]; return NO; } return YES; } Is there any way to do this but for documents? Thanks! EDIT: That's what I have done: - (BOOL)webView:(UIWebView

Docker-compose env file not working

只愿长相守 提交于 2019-12-04 11:30:20
问题 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: mysql restart: always env_file: - ./imran.env environment: MYSQL_ROOT_PASSWORD: ${PASS} ports: - ${PORT1}: ${PORT2} imran.env PASS=imran123 PORT1=3306 PORT2=3306 Instead of working correct i'm getting following errors: WARNING: The PASS variable is not set. Defaulting to a blank string. WARNING: The

Redirect to a new page from within a Drupal site

烂漫一生 提交于 2019-12-04 10:47:56
I'm working with a Drupal site, and we want to set up a special URL that redirects to an external site. In other words, if http://www.mysite.com is our Drupal site, we want to have http://www.mysite.com/external redirect to the external site. I have very little experience with Drupal and have no idea how to set this up. Any help is appreciated! If all you want is to redirect the users to the same site, when they follow a link that takes them to http://www.example.com/external , then you can implement hook_menu() using code similar to the following one: function mymodule_menu() { $items = array

looking for resource to learn “ExternalAccessory” Framework (iOS) [closed]

匆匆过客 提交于 2019-12-04 10:29:22
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I am looking for some good resources to learn the External Accessory framework, specially the "Bluetooth accessory interfacing". I know there is a book by Ken Maskrey for learning the External Accessory framework but this book does not cover the bluetooth communication. Some blog posts with some sample codes will be greatly appreciated Thanks Much! lxt Are you an approved Made for iPhone/iPod program

Running a Windows executable file from within R with command line options

空扰寡人 提交于 2019-12-04 09:37:14
问题 I am trying to call a Windows program called AMDIS from within R using the call system("C:/NIST08/AMDIS32/AMDIS_32.exe /S C:/Users/Ento/Documents/GCMS/test_cataglyphis_iberica/queens/CI23_Q_120828_01.CDF") in order to carry out an analysis (specified using the /S switch) on a file called CI23_Q_120828_01.CDF , but it seems that no matter what I try the file is not loaded in correctly, presumably because the options are not passed along. Does anyone have a clue what I might be doing wrong?