environment

How to set environment variables for javac to be able to find imported packages?

吃可爱长大的小学妹 提交于 2019-12-12 04:35:39
问题 I am not a java developer. I just want to run a java application (which can be downloaded from: http://code.google.com/p/k-shortest-paths/downloads/list , under this name: KShortestPaths_Java_v2.1.zip) While trying to compile test\edu\asu\emit\qyan\test\YenTopKShortestPathsAlgTest.java I get "package ... does not exist" and "symbol ... does not exist" which I know are related to path setting. Can you please tell me how I should set environment variables and from which directory compile and

How to write/read a folder/file in android storage

吃可爱长大的小学妹 提交于 2019-12-12 04:18:15
问题 Currently, I'm using below method to create a path in android external storage. public void createPath() { String path = Environment.getExternalStorageDirectory().getPath()+"/myFolder/"; boolean exists = (new File(path)).exists(); if (!exists) { new File(path).mkdirs(); } } As far as I understand getExternalStorageDirectory() does not exclusively refer to external storage. So this method will create myFolder in user preferred storage (which is generally internal storage). Now I have a

Add Laravel task to cron with parameters

那年仲夏 提交于 2019-12-12 03:54:09
问题 I want to add a Laravel task into cron, this is what I use to run it from command line (and runs succesfully) php artisan cron:hourly --env=staging Translated into cron: /usr/bin/php -q /home/usr/public_html/staging/artisan cron:hourly --env=staging I assume there is a problem with the parameter --env=staging because I got an error when the cron is executed (without this parameter I can't run the task in staging environment): Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]

Unexplained ArrayStoreException - Code or Configuration Issue

安稳与你 提交于 2019-12-12 02:25:32
问题 I am trying to debug an application that is working properly when tested locally on a Windows XP machine (version 5.1 build 2600 Service Pack 3) through Websphere Platform 6.1 running java version 1.5. This application is throwing an ArrayStoreException when it is deployed to UNIX servers (SunOS, version 5.10) running java version 1.5.0_24. I am leaning towards this being an environment configuration issue, but (other than it working locally) I can't seem to confirm that it's a configuration

How to schedule backups for development, testing, and production environments?

余生颓废 提交于 2019-12-11 20:14:34
问题 I was educating myself about website launches. I was reading this document to prepare an implementation check-list for my future website launches. On page 11, they mentioned Schedule backups for development, testing, and production environments I can imagine taking backup of a database and website code. How can someone automate and schedule backup of an entire x, y or z environment ? If this is a very broad question then I do not need the step by step document for doing this. Maybe some

Linker problems after switching to VS2005 from VC6 (LNK4099)

落花浮王杯 提交于 2019-12-11 19:37:33
问题 I ported one of my old projects to VS2005 and am having linker warnings such as xxxxx.lib(xxxxxxxx.obj) : warning LNK4099: PDB 'vc60.pdb' was not found with ...; linking object as if no debug info Now, I've tried rebuilding the project but the warnings won't go away. Is it really supposed to be looking for vc60.pdb and not vc80.pdb? I do have the vc80.pdb file.. Thanks 回答1: You have an .obj linked into your .lib that has debugging info in it; that debugging info has a link to the vc60.pdb. If

one java code behave differ on 2 differ pc

空扰寡人 提交于 2019-12-11 19:26:55
问题 I have simple JAXB unmarshalling code. package com.example; import java.io.StringReader; import javax.xml.bind.JAXBContext; import javax.xml.bind.Unmarshaller; import javax.xml.transform.stream.StreamSource; public class Main { public static void main(String[] args) { try { StringBuilder xml = new StringBuilder(); xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>") .append("<item><pubDate>Thu, 12 May 2016 08:44:05 +0000</pubDate></item>"); JAXBContext jaxbContext = JAXBContext

Rails Test Environment Named Routes

☆樱花仙子☆ 提交于 2019-12-11 18:07:56
问题 I've noticed that when I run tests (using Rspec and spork, if that matters), my hostname is set to www.example.com. So if I do: visit sports_url the test is actually going to www.example.com/sports. This is a problem because I need to run some of the tests with selenium (to get javascript support). Also, I noticed my emails where being marked as coming from www.example.com. What did I mess up? Why is the test environment running as example.com? Can I configure this somewhere? I would assume

Dynamically change config files in .Net Application based on environments through Bamboo

北慕城南 提交于 2019-12-11 17:08:28
问题 I have a windows service written in .net c#. We have three different environments say dev , test and prod . I also have 3 different config files for 3 environments say devAppConfig , TestAppConfig and ProdAppConfig . Earlier, we used to deploy manual, so we used to replace the config files and deploy the binaries.Now the deployments are to be automated for that we are using Bamboo. Now my question is how do I dynamically change the AppConfig for different environment deployments. I have 3

How can I get the info in cmd when I set ADB_TRACE=adb

折月煮酒 提交于 2019-12-11 13:21:55
问题 I tried to get the progress when pushing a file to device. It works when I "set ADB_TRACE=adb" in cmd (found in this page) Then I want to use it in python 2.7. cmd = "adb push file /mnt/sdcard/file" os.putenv('ADB_TRACE', 'adb') os.popen(cmd) print cmd.read() It shows nothing. How can I get these details? OS:win7 回答1: os.popen is deprecated: Deprecated since version 2.6: This function is obsolete. Use the subprocess module. Check especially the Replacing Older Functions with the subprocess