Let's say I have a Java class
abstract class Base {
abstract void init();
...
}
and I know every derived class will have to call init() after it's constructed. I could, of course, simply call it in the derived classes' constructors:
class Derived1 extends Base {
Derived1() {
...
init();
}
}
class…
Hello,
I want to build a web based admin tools that allow the system admin to run pre-configured commands and scripts through a web page (simple and limited webmin), what is the best approach?
I already started with Ubuntu installing LAMP and give the user www-data root's privileges !!!
as I learned (please check the link) this is…
I am trying to create a custom command button that defaults width and height to specific settings. I have the following code:
public partial class myCommandButton : Button
{
public magCommandButton()
{
InitializeComponent();
}
[DefaultValue(840)]
public override int Width
{
get
{…
Hello,
I have a PC with AMD FX CPU (Do not remember if it was FX51 or FX60)
it is 64Bit does it means that I can run 64Bit Guests? even if it does not have the Visualization extensions in the CPU?
hello,
I'm trying to figure out how to build a multi dimensional "array" that is:
flexible size
use 2 keys
1st key is int (flexible)
2nd key is string (kind of limited)
the use will be like
console.writelen(array[0]["firstname"]);
console.writelen(array[0]["lastname"]);
console.writelen(array[0]["phone"]);
…
Hi,
What is the reason for the following code that does not let me to create object.
class base
{
public:
void foo()
{ cout << "base::foo()"; }
};
class derived : private base
{
public:
void foo()
{ cout << "deived::foo()"; }
};
void main()
{
base *d =…
Hello,
I have this command openssl genrsa -des3 -out host.key 1024
it asks me for a password, I want to automate it!
how I can make it read the password from a text file (host.pass) so it will not ask me
or have it ignore the password (which one is better?)
Thanks
Hi,
we are building a PHP script that we need at work to create reports in PDFs
the reports will be created by using templates from postgrSQL.
so far I found that it can be done with the use of php and odt (openoffice) files [http://www.odtphp.com/] (do you have any other suggestions?)
now how I can…
Hello
I want to build a php based site that (automate) some commands on my Ubuntu Server
first thing I did was going to the file (sudoers) and add the user www-data so I can execute php commands with root privileges!
# running the web apps with root power!!!
www-data ALL=(ALL) NOPASSWD: ALL
then…
Hello,
I want to start a process (calling another program), currently the external program takes time (it is normal)!
but it freezes my GUI
I saw allot of examples and I'm learning, it is hard to figure it out,
trying to read and learn threading, but it is not that easy (at least for me)
and good…
Hello,
when we connect a machine to AD, user will be able to log into the machine with their AD user-name and password, at home they can do that ( when they are not on the work network) which fine and good
we need to have a program Auto-start when the user login BUT only when they are at work and…
Global.alert("base: " + base + ", upfront: " + upfront + ", both: " + (base + upfront));
This code above outputs this:
base: 15000, upfront: 36, both: 1500036
Why is it joining the two numbers instead of adding them up?
I eventually want to set the value of another field to this amount using…
There are a number of ways of implementing a pattern for using custom view model attributes, the following is similar to something I’m using at work which works pretty well. The classes I’m going to create are really simple: 1. Abstract base attribute 2. Custom ModelMetadata provider which will…
Hi, this is Eric Maurice.
Oracle has just released the October 2012 Critical Patch Update and the October 2012 Critical Patch Update for Java SE.
As a reminder, the release of security patches for Java SE continues to be on a different schedule than for other Oracle products due to…
Hi guys,
I'm running a strange problem sending emails. Basicly I'm getting this exception:
ArgumentError (wrong number of arguments (1 for 0)):
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/base.rb:642:in `initialize'…
I just installed the rails env using the Rails installer on my Mac OSX 10.7.4.
I create a project using the "rails new" command.
When I try to run the "rails server" command I get this message:
…