Hi there I have build a project with visual studio 2010 but I now need to open it using an older version vs2008. Is this possible by just changing the target framework to .net 3.5?
I'm trying to mock a class method with rspec:
lib/db.rb
class Db
def self.list(options)
Db::Payload.list(options)
end
end
lib/db/payload.rb
class Db::Payload
def self.list(options={})
end
end
In my spec, I'm trying to setup the expectation Db::Payload.list will be called when I call Db.list:
describe Db do
before(:each) do
@options = {}
Db::Payload.should_receive(:list).with(@options)
end
it 'should build the LIST payload' do
Db.list(@options)
end
end
The problem is that I am always receiving the following error:
undefined method `should_receive' for Db::Payload:Class
Any help understanding this error would be most appreciated :-)
I am working in Joomla trying to build a skillsbank. I am wondering if there exists any open-source module on the net that supports this operation. Can anyone help me please
i read it was going to be changed to 520px in early 2010, but i keep seeing pages that are new that are the older 760px width - is it safe to build at the wider width still or should we be building at 520px?
Hi folks,
I have a little program allowing users to type-in some regular expressions. afterwards i like to check if this input is a valid regex or not.
I'm wondering if there is a build-in method in Java, but could not find such jet.
Can you give me some advice?
Best regards
Phil
Using the build and analyze of XCode I saw i have a memory leak in my code:
- (NSString *) doIt
{
NSString *var = [[NSString alloc] init];
return var;
}
This is of course a simplified snippet of my problem
where do i release the object?
I am building a website on top of nhibernate. Is there any efficient way to build reports? BY reports, I mean is there anyway to execute a complicated query that grabs random pieces of data? StoreProcedures? Hql?
Can I get single, non mapped values from hql?
You build it for FF, then you hack it for IE.
Take a look here:
http://jbhstad.se/NicklasSandell/
Anyone knows what's up with IE? The menu seems to have a gap between for some reason, and the entire site is floated left?
Thanks in advance,
-Nike
I need to build a Java app with considerable IO requirements, supporting tens of thousands of concurrent TCP connections.
I found a library called Raining Sockets which seems intended to make it easier to use Java's asynchronous NIO package, but the last update was 6 years ago.
Are there other libraries, that are preferably still under active development, and with a public maven repository, that I should look at?
function FakeClass(){};
FakeClass.prototype.someMethod = function(){};
FakeClass.prototype.otherMethod = function(){
//need to call someMethod() here.
}
I need to call someMethod from otherMethod, but apparently it doesn't work. If i build it as a single function (not prototyped), i can call it, but calling a prototyped does not work. How can i do it as if i was treating the function just like a class method?
So I'm searching for a good crash course on localstorage and interacting with it in Javascript. I want to build a to-do list webapp with some extra functionality but it would be just for 1 user. I don't want to mess with php/mysql and have the server doing anything. Links to tutorials would be best :-D
Hi All,
Not able to create standalone python binary package
1) The binary package works only on the machine on which it is build
2) There is always an error with respect console.py dependent on cx_freeze and wx libraries (.so files).
3) Tried the rpath trick suggested at this link http://wiki.wxpython.org/CreatingStandaloneExecutables
4) I have also experimented with GUI2exe , but still dependency problem exists.
Please let me know if there is working python script to solve these dependence problem of cx_freeze and wx._core (.so) files.
Thank you
I want to build rest web services in java. can some body tell me what are the software and hardware requirements for that?
I want to know it in sense like one computer, which one database and which one server and if any other because i want to use these web services globally and want to post JSON in request and also want to get response in json for an android app. thanx, any answer would be a great help for me.
If you build the edmx file from the database and then the db changes, how do you get the model to pick up the change?
Do you delete the whole model and regenerate or can you detect changes?
I'm just starting out...
Our Company is looking for a sr.flex developer. As part of interview process customized UI understanding and implementation is also included.
I am Usability&design Lead for the same product team have some understanding of flex 3 but am not sure if pure UI/usability questions can be answered by flex developer. So can you suggest some UI related questions to see if he/she has competency to refer a prototype(html/mockup's) and build the same UI in flex.
After some googling an obvious answer or starting point for a Java IRC bot has not presented itself, my question; is there an existing framework to help me do build an IRC bot? Failing that, is this possible using Sockets in Java to do this and has anyone seen an example around the web?
cheers guys.
On Windows 7 (32 bits), i have downloaded and installed the windows desktop java application using windows installer of that application. When i re-open application it complains about a missing VB dll. What may be reason complains for missing VB dll and how can i resolved?
Any help will be appreciated.
FYI: The installer is build using NSIS and executable is prepared using JSmooth, of windows desktop java application that i have installed.
Hello,
For instance if I do something like:
Criteria c = session.createCriteria(Book.class)
.add(Expression.ge("release",reDate);
.add(Expression.ge("price",price);
.addOrder( Order.asc("date") )
.setFirstResult(0)
.setMaxResults(10);
c.list();
How can I use the same criteria instance, but remove (for example) the second criterion?
I'm trying to build a dynamic query in which I'd like to let the user remove a filter, without the backend having to reconstruct the criteria from scratch.
Thank you
I want to make Waf generate a beep when it finishes the execution of any command that took more than 10 seconds.
I don't know how do add this and assure that the code executes when Waf exits.
This should run for any Waf command not only build.
I checked the Waf book but I wasn't able to find any indication about how should I do this.
You usually invoke the following commands to build a ./configured product:
make
make install
Okay, the product is in the system now. Then you change some source code files and invoke only make install. The question is, does the conventional implementation of install target requires the executables to be recompiled, or just the old ones should be copied to the appropriate system path?
Hi,
I have an object Trip in my object model containing a list of Nodes (e.g. NodeName, StartDate and EndDate) and I am trying to build a Custom control in WPF that draws list of rectangles: one for each Node contained in the Trip object (based on StartDate en EndDate)
Would you have any hint on how the Custom Control should be structured so that I can bind a Trip object to it and draw the rectangles properly, please?
I need to build Boost with a non-standard set of flags (due to a conflict between Boost threading and C++/CLI). I'm adding the required flag (/clr) using CXXFLAGS, but this flag conflicts with the Boost default /EHs flag (/clr implies /EHa which is incompatible with /EHs), so that needs to be suppressed. Is there a mechanism like CXXFLAGS to suppress a default Boost flag or must I edit all of the compiler specification files by hand?