I have a package that has several components in it that would benefit greatly from using logging and outputting useful information.
What I do not want to do is to 'setup' proper logging for every single file with somewhere along these lines:
import logging
logging.basicConfig(level=DEBUG)
my_function = logging.getLogger("my_function")
...
I maintain a program written in Delphi 6. It loads some bpl package files dynamically using SysUtils.LoadPackage. Often I change something in the program that causes a package to fail to load. When this happens a message box appears and then an exception is thrown. The message box and exception are separate.
Here's an example of the mes...
Hello,
As the tile suggests, I want to get a list of all packages that provide a certain virtual package.
A way of doing this would be to write a shell script that parses all output of
apt-cache search -f .*
And spits out all packages that have the virtual package in the provides section.
The problem with this approach is that it tak...
hi,
I found Vb6 tools package and deployment. I used it and created a package or setup file from my running vista operating system. Later when i tried deploying it in clients computer with winxp, it asks for update of system file and ask to restart. The process never ends just ask for update and restart. how should i create setup file t...
I have a module (tools.py) containing many classes. I'd like to extract these out into its own "whyteboard.tools" package, each class being inside its own file.
However, I previously moved from having all my classes in one base directory to being in a package below the root of my project, and had issues with loading in pickled files tha...
I've just repackaged my program. Previously all modules lived under the "whyteboard" package, with a "fakewidgets" package containing a bunch of dummy GUI test objects.
Now, all my modules are in packages, e.g. whyteboard.gui, whyteboard.misc, whyteboard.test - which is where fakewidgets now lives.
Now, when running my tests, I get an ...
1) Why in the files that are in a Java package I shoud write the "package" thing in it?, its not indirectly assumed that if it's in the directory, then its in the package?.
2) I come from the C++ world. I always imported the .h of the classes wich I need from other files that use that class (I mean, I want only to "show" the header, not...
Apologies in advange for the newbie question. I can't get my head around this, and the docs don't help!
Consider the following directory structure:
spam.py
foo / __init__.py
ham.py
eggs.py
with the following code:
# __init__.py
# blank
# ham.py
print( "got ham!" )
# eggs.py
print( "got eggs, importing ham!"...
I have a very simple SSIS pacakge having 3 containers in the control flow. Each container is explicitly connected by a precedence constraint which evaluation operation is set to constraint only and each has a pre-execute event handler in it. When I run the package from Visual Studio, it works perfect but when I run it from DTExec.exe, it...
This is driving me absolutely nuts. I've scoured threads on the subject and NOTHING seems to work.
I have an FLA file with the following code on frame 1:
import TestClass;
var tstClass:TestClass = new TestClass;
tstClass.testMethod();
In the accompanying AS file, I have the following:
package
{
public class TestClass
{
...
Hi. There are 2 files named:
AnnuityDueGUI.java
AnnuityDueResultGUI.java
Under AnnuityDueGUI.java, there is this method as below:
=============
public double calculateFADGUI(){
//FVA = A{[(1+i)^n – 1] / i} (1+i)
String amountStr = amount.getText() ; //convert string to double
dAmount = Double.parseDouble(am...
(Relative beginner here, please be gentle...)
I've got a Scala program that I can build with sbt. I can (from within sbt) run compile and test-compile with no errors. I've defined a package by putting package com.mycompany.mypackagename at the top of several .scala files. When I do console to get a Scala REPL, this happens:
scala> impo...
How can I set up a project in Flash Builder for creating a collection of classes that is not an application by itself? When creating an Actionscript project it forces having a main application file, as well as sets up the whole bin-debug folder and such.
For instance, if you wanted to start coding something like Tweener, Papervision, or...
orig post:
Hello List,
I am new to Java, Netbeans, and the IB Java API.
I downloaded the IB Java API software and I am using Netbeans to look at it.
On one of the files, Netbeans is indicating a problem with the file.
At the very top of the file, the author has placed a package declaration:
package samples.rfq;
Netbeans is using a...
I'm using VS2010 with the Web Deployment Projects to create a release package for my web application. In WDP I have created some build tasks to for example transform the web.config, create some directories and remove some files.
Now I've migrated the web application to ASP.NET 4 and I've been looking at this feature in VS2010 called Pac...
Are there good patterns for mapping solution configurations to environments and using MsDeploy for packaging per environment?
Shortest version: Grab this file, and try to change the .msbuild file so that a package is created.
Details
I have a solution with a large number of libraries and an ASP.NET MVC application. I drive the build...
I have a series of python modules I would like to put into a package. I would like to set it up such that anyone interested can just download it and install it (on unix). How can I do this?
...
Hello, I wrote a C++ program and then created a package. Every thing went normally with the installing and what not. But now I have another version of the program, an update. Is there a way to create a package with this new version that deletes the old one, or do I have to remove the old version manually and then install the new version?...
While browsing the source code of the scala API I met this package definition here :
package scala.util.parsing
package combinator
package syntactical
What does that mean ? That the class will be available in more than one package ?
...
Hey I have a really simple question that needs more of just an explanation than a debug, but I have seen in the interface definitions for many class objects the keywords "@package", "@private", "@public", and then even weirder "struct {...}". I have been able to make complete programs without using any of the aforementioned, so I was hop...