Hello all, i'm a newbie to PHP and i don't like to write my code in notepad-like editors. Is there an editor like VS for PHP?
Also, if you could give me a reference to a good introductory PHP eBook (one that covers simple concepts like declaring and using classes in PHP) that would be great.
Thanks in advance!
...
In WPF, how do I use reflection to find all classes in a project? I'm interested in obtaining the ones whos names match a certain regular expression.
...
I had some decryption code (using wincrypt.h) that lived within my FileReader.cpp class. I am trying to segregate the code and push this decryption method into a MyCrypt.cpp class. However, upon moving it I'm stuck with a bunch of errors that I wasn't facing before. For every wincrypt.h or windows.h specific command, I am recieving "i...
Could someone explain to me the concept of Get and Set property? It's just not sinking in for me.
Thanks!
...
Update: Modified title to better reflect my question
Hi everybody :)
My question today revolves around a CustomEvent I'm trying to send from one sub Class to another.
I've used my CustomEvent class to pass an event from a sub Class to my main class fine, but I'm not sure who to do that between sub classes.
My Custom Event Class
pack...
I'm importing from a CSV and getting data roughly in the format
{ 'Field1' : 3000, 'Field2' : 6000, 'RandomField' : 5000 }
The names of the fields are dynamic. (Well, they're dynamic in that there might be more than Field1 and Field2, but I know Field1 and Field2 are always going to be there.
I'd like to be able to pass in this dict...
Ok, so I am just starting to use C intrinsics in my code and I have created a class, which simplified looks like this:
class _Vector3D
{
public:
_Vector3D()
{
aVals[0] = _mm_setzero_ps();
aVals[1] = _mm_setzero_ps();
aVals[2] = _mm_setzero_ps();
}
~_Vector3D() {}
private:
__m128 aVals[3];
};
So far so good. But when I create a sec...
I'm coming from the JAVA world and reading bruce eckels' python 3 patterns idioms.
While reading about classes...it goes on to say that in python there is no need to declare class variables. You just use them in the constructor...and boom..they are there.
So for example:
class Simple:
def __init__(self1, str):
...
Hi,
I need to store a char array inside a class and then return it. I have to admit that I'm a bit confused about pointers and have tried everything I can think of but can't get it to work. Here's what I have:
#include <iostream>
using namespace std;
class Test {
public:
void setName(char *name);
char getName();
private:
c...
What I got:
I got a textual representation which my program converts to a much more readable format, especcially for forums, websites and so on.
Why do I need such templage engine
As there are many different forums and blogs, the syntax of each one might be different. Instead of hard-coding the different syntax I would like to genera...
I'm trying to modify the icons for the jQuery UI portlets. Rather than have a plus to minimize and a minus to expand, I wanted to switch them.
I've only had limited success with it where the first time to click the minus it flips to a plus, but the plus never flips to a minus. Any help on this would be much appreciated.
Here's a sa...
Hello. I have problem with base classes in WPF. I try to make a base class with some base elements, so that other windows can inherit these components. But all that i have, when I inherit base class is only empty window, without these elements. For better understanding i put my code here:
using XSoftArt.WPFengine;
namespace XSoftArt
{
...
I know that if I do something like this:
class Obj
{
public:
int* nine;
};
Obj Obj1; //Awesome name
int eight = 8;
Obj1.nine = &eight;
Obj Obj2 = Obj1; //Another Awesome name
then Obj1's and Obj2's nines will point to the same 8, but will they share the same pointer? I.e.:
int Necronine = 9;
Obj1.nine = &Necronine;
Obj2.nine == ...
There have been several questions over the past few days about the proper use of null; here are three (one is mine):
Best Practice: Should functions return null or an empty object?
null objects vs. empty objects
how do i explain that if (xyz == null) checks are not “protective”.
While reading and thinking about this issue, the though...
Hi,
I'm trying to work out the best method to search a vector of type "Tracklet" (a class I have built myself) to find the first and last occurrence of a given value for one of its variables. For example, I have the following classes (simplified for this example):
class Tracklet {
TimePoint *start;
TimePoint *end;
int angle...
here's what I want to achieve. I have a collection (A..n) with a member of type collection (myLIST). In collection B, I have an "Alias" field which we can represent as primary key.
example
A collection myLIST[0].Alias = 001
A collection myLIST[1].Alias = 002
A collection myLIST[2].Alias = 003
A collection myLIST[3].Alias = 001
In an...
I'm really stuck on why the following code block 1 result in output 1 instead of output 2?
Code block 1:
class FruitContainer:
def __init__(self,arr=[]):
self.array = arr
def addTo(self,something):
self.array.append(something)
def __str__(self):
ret = "["
for item in sel...
class Controller {
protected $_controller;
protected $_action;
protected $_template;
public $doNotRenderHeader;
public $render;
function __construct($controller, $action) {
$this->_controller = ucfirst($controller);
$this->_action = $action;
$model = ucfirst($controller);/* Conecting th...
How can I use an NSString in a file where that string wasn't created?
ex.
I created a string in thisone.m, but I want to use the same sting (ie the same data) in thatone.m
the data from this string will be coming from a UITextField
...
Looked for an answer for this question, but I haven't found a suitable one yet. I'm hoping you guys (and gals) can help me out! (This is for an iPhone app)
Alright, I have a Mutliview application. Each view has it's own class, and everything is happy. However, the different classes sometimes call the same method. Up until now, I ha...