Right now, I want to develop a C++ program.
And the UI design is the difficult issue.
my question is:
1. is there any good practice for developing a well structed c++ program ?
2. is there any good practice for developing UI in c++?
3. I usually heard of Activex in C++, can it use to encapsulate a UI, and is good for maintain after sof...
I can't seem to figure out how to disable the header as a whole. I have installed the blank theme, and have been playing in the page XML, but to no avail. I also cannot seem to switch from 2columns-right to 2columns-left, even though i've run searches for every damn file that includes the phrase and swapped it. I'm wondering if it's just...
I can check for a module in Python doing something like:
try:
import some_module
except ImportError:
print "No some_module!"
But I don't want to use try/except. Is there a way to accomplish this? (it should work on Python 2.5.x.)
Note: The reason for no using try/except is arbitrary, it is just because I want to know if there is ...
Say I have the following code:
from foo.bar import Foo
from foo.foo import Bar
__all__ = ["Foo", "Bar"]
def iterate_over_all():
...
How can I implement code in the function iterate_over_all() that can dynamically obtain references to whatever is referenced in __all__ the module where the function is implemented? IE: in ite...
We are currently considering to move away from CVSNT, very probably to Subversion (because we are already using trac, which is well-prepared for SVN-integration). As we have been making rather extensive use of some less common CVS(NT)-features a couple of questions arose very early on. This is but the first of them.
Here's the scenario:...
We are using pureMVC multicore as the flex Framework,
When we need to load a module we use the first line "moduleEval.swf";.
It works well in local for testing.
But not on the production server which is obvioulsy online, in which case i need to put he full URL.
Is that normal ?
moduleLoader.url = "moduleEval.swf";
//moduleLoader.url...
Let's say you have a Fortran 90 module containing lots of variables, functions and subroutines. In your USE statement, which convention do you follow:
explicitly declare which variables/functions/subroutines you're using with the , only : syntax, such as USE [module_name], only : variable1, variable2, ...?
Insert a blanket USE [modul...
Hi,
I have created some separate modules - beaches / villages / activities
What I would like to do is use google maps in each of these modules.
I was thinking of adding a maps module and call it into each of these modules??
What do you think...
Any ideas, tips or suggestions welcome
Thanks
Andrew
...
So I've been programming in C# for the last 6 years or so and now I'm getting my feet wet with VB.net.
The code base I'm working with uses some modules. To me the module looks a lot like a singleton. Only one exists; it can be called anywhere inside the namespace.
Is there something I'm missing here? Does VB not support the normal wa...
I was just wondering what is best for performance when making a web service in Perl.
Is it best to have as short as possible .pl script and put as much code as possible in a module that is used by the .pl script, or doesn't it impact performance if i don't use a module at all?
I am using mod_perl on a CentOS Linux box with perl 5.8.8....
Hey There Stackoverflow,
I was wondering why there are so few examples and reading material on how-to program to modules.
Pretty much every large project you start to get lost there in the middle of so much code, even if its on a separate folder. (Well, I do)
I would like to understand and maybe see a quick example or link to one, of ...
Hello!
I'm using Netbeans. Often I need to specify own libraries, used by my
projects. It is very unhandy to maintain them across multiple workspaces.
As far as I understand correctly, Apache Felix, an implementation of OSGI's
module system, could manage such libraries (provide versioning,
automatic dependency resolvability, ...)
If t...
I'm interested in hearing some discussion about class attributes in Python. For example, what is a good use case for class attributes? For the most part, I can not come up with a case where a class attribute is preferable to using a module level attribute. If this is true, then why have them around?
The problem I have with them, is that...
I have a module like this:
module Controller
module LocaleModels
def self.included(base)
base.send :include, InstanceMethods
end
module InstanceMethods
def locale_Lexeme; constantize_model('Lexeme') end
def locale_Synthetic; constantize_model('Synthetic') end
def locale_Property; constantize_model(...
Hi,
I have a file called tester.py, located on /project.
/project has a subdirectory called lib, with has a file called BoxTime.py:
/project/tester.py
/project/lib/BoxTime.py
I want to import BoxTime from tester. I have tried this:
import lib.BoxTime
Which resulted:
Traceback (most recent call last):
File "./tester.py", line 3...
i am making a IRC bot in C#, and i would like to have the feature to load plugins... for example: there would be a text file with some code in it, and then the program would import the contents of that text file AS CODE... into a function... how is this possible?
...
Hi,
Strange thing – I have Authentication module in lib/ like this:
module Authentication
protected
def current_user
User.find(1)
end
end
and in ApplicationController I'm including this module and all helpers, but method current_user is available in controllers, but not from views :( How can I make this work?
...
I am installing imgseekweb according the instructions. I installed or had my hoster install imgSeekWeb.py, iswImage/images folder,
iswImage/thumbnail folder, Python Imaging Library (PIL), PyQT, imgSeek, imgSeekCmd (updated), and imgSeekWeb-0.0.1_2.
I was able to successfully create the database by running
imgSeekCmd add -b ~/data/img-d...
In Ruby, since you can include multiple mixins but only extend one class, it seems like mixins would be preferred over inheritance.
My question: if you're writing code which must be extended/included to be useful, why would you ever make it a class? Or put another way, why wouldn't you always make it a module?
I can only think of one r...
I am trying to setup a directory that contains Perl modules that should be set aside to not interfere with a production system.
This works OK, with modules that use Module::Install. I just specify a "lib" option and all is well. Now I tried and tried and I simply cannot make this happen with Module::Build. For instance, this command:
...