I have a class that has an list<Book> in it, and those Book objects has many many properties.
How can I remove from that list every Book that his level value is different than, for example, 5?
Hi,
I am pretty new to CakePHP, having been using rails for a little while. My question is, can anyone recommend a good user management, authentication and acl plugin or component for Cake?
I have come across this one, but it has not been updated since 2008. If not can anyone recommend a good book/tutorial site for this kind of set up? I am more than happy to sit down and write this kind of thing myself, but would rather use a tested community plug-in.
Cheers
Hi,
How to import/export table definitions from my dev database to production database(recreate the whole database). I have Sql server 2005, Sql Management studio with power shell.
Thanks in advance.
What is the delay load equivalent in unix based system.
I have a code foo.cpp, While compiling with gcc I link it to shared objects(totally three .so files are there.).Each of the .so file for different option.
./foo -v needs libversion.so
./foo -update needs libupdate.so
I need the symbol for those libraries should be resolved only at the run time.
./foo -v should not break even if libupdate.so library is not there.
It is working in windows using the delay load option(in properties of dll). What is its equivalent in unix systems.
Will '-lazy' option does the same in UNIX?.
If so,Where to include this option? (in makefile or with linker ld).
I am not good in unix.
Please help me.. Thanks in advance.
How does server management software work?
I was reading about those software and I found that they can monitor CPU speed/temperature.
How one can do this in C++?
Hi, is it posible to have callable objects on ActionScript? For example:
class Foo extends EventDispatcher
{
Foo() { super(); }
call(world:String):String
{
return "Hello, " + world;
}
}
And later...
var foo:Foo = new Foo();
trace( foo("World!") ); // Will NOT work
ok, my Sql Server Management Studio Object Explorer had dissapeared. I know the shortcut F8, and the view-object explorer method.. neither do anything, ive clicked everything on the keyboard, googled around, but nothing..
really need this back, its a massive hassle having to navigate through the summary window without the object explorer tree view!
help meeeee...
I'm trying to sort a Vector in java but my Vector is not a vector of int, it is a vector of objects
the object is :
public MyObject()
{
numObj = 0;
price = new Price();
pax = new Pax();
}
so I have a Vector of MyObject and I want to order it by numObject, how do i do it, i'm new in java?
thank you so much for all your help
Let's say I have a custom object of Foo
Is there anyway I can sort through a list of these objects, like
list<of foo>.sort()
and also be able to sort this list with a passable parameter. which will influence the sort?
list<of foo>.sort(pValue)
I'm guessing I'll need to define two separate sorts, but I am not sure.
How does server management software works?
I was reading about those software and I found that they can monitor CPU speed/temptature.
How one can do this in C++
hello all , I am trying to create url routing with strongly typed objects for pages but I keep getting null object on the first line so it's crashing
//Getting the suitable executing Page
var display = BuildManager.CreateInstanceFromVirtualPath(_virtualPath,typeof(Page)) as IProfileHandler;
//Setting Page Parameters
display.MemberId = Convert.ToInt32(requestContext.RouteData.Values["ID"]);
//Return Page
return display;
public interface IProfileHandler : IHttpHandler
{
int MemberId
{
get;
set;
}
}
Hi!
I have the following code:
Criteria crit = sess.createCriteria(Product.class);
ProjectionList proList = Projections.projectionList();
proList.add(Projections.property("name"));
proList.add(Projections.property("price"));
crit.setProjection(proList);
But I also have User.class and I would like the name to be restricted on User.class and price from Product class.
How can I restrict different columns on different objects in Hibernate Search?
Hello,
I'm writing transpose function for 8x16bit vectors with SSE2 intrinsics. Since there are 8 arguments for that function (a matrix of 8x8x16bit size), I can't do anything but pass them by reference. Will that be optimized by the compiler (I mean, will these __m128i objects be passed in registers instead of stack)?
Code snippet:
inline void transpose (__m128i &a0, __m128i &a1, __m128i &a2, __m128i &a3,
__m128i &a4, __m128i &a5, __m128i &a6, __m128i &a7) {
....
}
Assuming we are running a compiled C++ binary:
Is passing around an int (e.g. function to function, or writing it into variables) slower than passing around structs/class objects like the following?
class myClass
{
int a;
int b;
char c;
vector d;
string e;
}
Let's say I have a custom object of Foo
Is there anyway I can sort through a list of these objects, like
list<of foo>.sort()
and also be able to sort this list with a passable parameter. which will influence the sort?
list<of foo>.sort(pValue)
I'm guessing I'll need to define two separate sorts, but I am not sure.
Thanks!
I have two objects of Zend_Date class and I want to calculate the difference between them in full calendar months.. How can I do this?
<?php
$d1 = new Zend_Date('1 Jan 2008');
$d2 = new Zend_Date('1 Feb 2010');
$months = $d1->sub($d2)->get(Zend_Date::MONTH);
assert($months == -25); // failure here
Thanks in advance!
Got a problem,
I have an an array of objects inside a constructor of a class. I'm trying to use the array to relate to a property in the object but I can't relate to them.
lessonObjectsArray(0) = lessonObject1
lessonObjectsArray(1) = lessonObject2
lessonObjectsArray(2) = lessonObject3
the properties of the object "lessonObject1" are lessonName, videoLink, pdfLink
I thought it would be tbTest.text = lessonObjectsArray(0).lessonObject1.lessonName
just doesnt work
is there anywhere such script that includes a cakephp user management part,
view - registration form ( for example allowing to enter: first name, surname, email, user address, user phone number, last login date etc. )
sends confirmation to email - about registration
inserts users data into mysql tables (users id, etc.) and blocks duplicate entries to users tables
or does other similar tasks
etc.
if there is no such plugin then may be someone can send the custom made scripts
Anyone out there use a "buzz management tool"? such as buzzstream? Which do you recommend? I am trying to find some alternatives to Buzzstream, I found one a few days ago but completely forgot the name. I remember the examples it had used Nike as reference for Buzz.
Hope you guys can give me a hand!
Thanks.
Okay, I have what I think is a simple question.. or just a case of me being a C# beginner.
I have an array of custom objects (clsScriptItem) that I am populating from a database. Once the items are loaded, I want to back them up to "backup" array so I can revert the information back after changing the main array. However, when I use CopyTo to copy the array and then alter the original array, the backup array is also being altered... I though CopyTo merely copied values + structure from one array to another.
private void backupItems()
{
lastSavedItems = new clsScriptItem[items.Length];
items.CopyTo(lastSavedItems, 0);
//items[0].nexts[0] is 2
//lastSavedItems[0].nexts[0] is 2
items[0].nexts[0] = "-1";
//items[0].nexts[0] is -1
//lastSavedItems[0].nexts[0] is also -1
}
How do I backup this data without having the two arrays be 'linked'??
What I want to do is pretty simple:
f=Foobar.objects.get(id=1)
foo='somefield'
bar='somevalue'
f.foo=bar
f.save()
This doesn't work as it tries to update the f object's 'foo' field, which of course doesn't exist. How can I accomplish this?
hey Folks,
Is there any way in ruby to get the memory address of objects..
say..
(i = 5) is that possible to get the mem address of that object 5..
I have been trying to get this over some time..,
Any answer would be really appreciated...
thanks,
Regards levirg
Are there ways at determining the total size of a complex object in .NET? This object is composed of other objects and might hold references to other complex objects. Some of the objects encapsulated by this object might be POD, others may not.