Hi,
Currently I'm programming a database class which makes a little bit use of PHP's PDO class, but I'd like to add some simple features for making programming a certain application a bit easier.
Now In the following piece of pseudo code you can see where I'm going. The only problem in this example is that the $result variable is an ob...
What do these two CSS selectors mean?
h1#myItemOne h2
{
background:#0099FF;
color: #A3F4A3;
}
h1.myItemTwo h2
{
background:#0099FF;
color: #A3F4A3;
}
Are these two selectors valid for use?
...
I have a class library file that is not is not getting picked up when I add it to the reference and bin folder.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace SecuritySettings
{
public class Security
{
...
public Security()
{.....
Is it best to use a pre created class / api for database interaction (e.g Pear MDB2 or php's PDO) or create your own?
I will be only be using mysql with 1 database and perform relatively simple SELECT, INSERT, UPDATE, DELETE queries.
...
In Visual Studio 2005 and prior you could export your code to Visio and view the relationships between the objects and what methods, properties and fields it had. This was great as it allowed you to tweak the appearance to improve the look.
In VS 2008 that option is gone, replaced (supposedly) with the class diagram system. It is functi...
Hi Everyone,
I'm creating a subclass of UIImageView that detects touches, and will move, rotate and scale the image based on the touches. However, I really feel like I'm reinventing the wheel here, and it's driving me nuts. Shouldn't this already exist somewhere?
Does anyone have any examples, or links to a class that is already doin...
Short of parsing the ASPX page myself, what's the way to determine the class of an ASPX page?
In our projects we use Web Projects in VS2008 (instead of Web Sites kind or projects), that gives us a single DLL for the whole site, which is great.
Now I need to determine programmatically the class of an ASPX site.
I KNOW that the ASPX cla...
I have been in the process of creating a "lite" version of an existing Flex application, and thereby porting many of the classes that are used by both into a library project. As such, I want to easily find all of the "orphan" classes in the original project - those classes that are no longer referenced/used by the project. Is there an Ec...
Am separating my delphi code into interface and implementation units ie.
EmployeeIntf.pas looks like this
type
// forward declaration
TScheduleList = class;
TDeparment = class;
TEmployee = class(BDObject)
....
function GetSchedules: TScheduleList;
function GetDepartment: TDepartment;
end;
TEmployeeList = class(DBList...
Hi,
I'm playing around with Ruby and I have written the following code:
module IdAndNameRedefine
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def use_id_and_name_from_module(use_attribute)
class_eval <<CODE
def id_and_name
"\#{id}-\#{#{use_attribute}.downcase}"
...
Hello all,
Is there a way to add (or extend existing) classes at runtime in java. I'm stuck on a problem, in which I have to extend an existing class at runtime and add this to the classpath, so that this new class get picked up.
thanks,
...
If I have an object, say, a user class, with say First & Last Name properties what is a better way to populate it:
The PAGE instantiates the class and the PAGE calls the business layer to popualte the class. (In this case the class is essentially a container for data).
or
The class itself not only has the properties, but it also ha...
I have two php files in the same directory:
test.tattler.php
class.tattler_stats.php
My test.tattler is supposed to create an object of my tattler_stats but it gives me this error:
Fatal error: Class 'tattler_stats' not found in /.../test.tattler.php on line 4
Code in test.tattler:
<?php
include 'class.tattler_stats.php';
$tatt...
Hi,
I'm sure this is a really simple question. The following code shows what I'm trying to do:
class MemberClass {
public:
MemberClass(int abc){ }
};
class MyClass {
public:
MemberClass m_class;
MyClass(int xyz) {
if(xyz == 42)
m_class = MemberClass(12);
else
m_class = MemberClass(32...
In Python, is there a way to bind an unbound method without calling it?
I am writing a wxPython program, and for a certain class I decided it'd be nice to group the data of all of my buttons together as a class-level list of tuples, like so:
class MyWidget(wx.Window):
buttons = [("OK", OnOK),
("Cancel", OnCancel)]
...
What's the difference between a .class file and a .java file? I am trying to get my applet to work but currently I can only run it in Eclipse, I can't yet embed in HTML.
Thanks
**Edit: How to compile with JVM then?
...
I have this .JAR file. I decompiled it to multiple .java files. There is any way to have a new functional .JAR file, after updating a single .java file and recompiling it? If it is possible how would we recompile this .java file without having it's dependencies? (ie. external libraries)
...
What are public, private and protected in object oriented programming?
...
I want to compare C++ class/structure objects. In C, most of the time, one knows exact size of the struct by adding up the sizes of individual fields (assuming that compiler does not add padding). Hence one can use memcmp() function on two object to compare them very fast. I am not sure if the same works for C++. This is because a class ...
Long time reader, first time poster asks:
After many weeks of google and forum trawling, I am still at a loss. I have a series of nested divs, some with ids, some with classes, and some with ids and classes.
It's XHTML strict, and validates.
Original code http://www.drewsonne.com/melonstack/?topic=brisbane
eg.
<div id="main">
<div...