I'm trying to get started with unit testing in Python and I was wondering if someone could inform me of the advantages and disadvantages of doctest and unittest. What conditions would you use each for?
Hi,
I'm reading about the Entity Framework 4.0 and I was wondering why should I create a complex type and not a new Entity (Table) and a relation between them?
Thanks,
Ronny
Hello,
I was wondering if there exists some kind of indexer (in python language for exemple) that would take a bunch of html files and create an index in javascript.
In the solution, these javascript files would then be used to create a pure browser search engine.
Jerome
I am using Mocha W32 TN3270 at work currently, and wondering what good alternatives exists?
Recommendations on monospaced fonts for the client along with custom color settings would be appreciated as well. I am using Monaco with the default color settings, but it does not just cut it, some screenshots of your client at workplace are welcomed.
I am using cocos2d on the iPhone and am wondering if it is possible to use a texture mask in order to create tile transitions / fringe layer. For example, a grass tile and a dirt tile, I would want a tile that had both grass and dirt in it... Has anyone done this, or is the only way to create one tile for every possible transition?
I have a program that uses:
ThreadPool.QueueUserWorkItem(new WaitCallback(FireAttackProc), fireResult);
On Windows7 and Vista it works fine.
When I try to run it on XP the result is a bit different from the others.
I was just wondering in order to execute QueueUserWorkItem properly do I need a dual CPU system?
The XP I tried to test on had .Net 3.5 installed.
Inputs most welcome.
I have a button click event that takes information from controls and enters it into a table via INSERT INTO SQL statement in VBA.
I was wondering if there is anything I could add to this, or some other method to acquire the record number that is created for the record?
Could I just turn around and SELECT against the table and use rs.last?
I have some STI structure like following:
class Box
has_many :part,:class_name = "Part"
end
class Part
def self.dosomething()
end
end
class TypeA
class TypeB
assuming we have some codes like boxtypeA = Box.new. I am wondering if there is a way to make boxtypeA.part.dosomething() to call TypeA's method not Part's or TypeB's. I think basically what we need to do is to convert the part to TypeA, how can we achieve that?
Thx in advance!
I have some STI structure like following:
class Box
has_many :part,:class_name = "Part"
end
class Part
def self.dosomething()
end
end
class TypeA<Part
def self.dosomething()
end
end
class TypeB<Part
def self.dosomething()
end
end
assuming we have some codes like boxtypeA = Box.new. I am wondering if there is a way to make boxtypeA.part.dosomething() to call TypeA's method not Part's or TypeB's. I think basically what we need to do is to convert the part to TypeA, how can we achieve that?
Thx in advance!
We've got several Flex projects, one of which has just been refactored. I'm wondering if there's an easy way to tell which classes and functions (if any) aren't being used any more?
I've discovered that we've definitely got some unused code, because running ASDoc on the entire project reports some compilation errors which don't get reported by Flex Builder (implying that those classes aren't being used any more). I'm hoping to find a more robust and complete method, and preferably one which can work at function level too.
Hi Guys,
Just wondering if anyone has had any experience using MS Azure and the Enterprise Library? I can't seem to find any articles on this and hoping (really hoping) someone has some ?
Thanks,
T.
I have a client which makes a limited number of concurrent web requests. I use WebClient for this purpose. I currently have a pool of WebClient-s which I create once and use whichever one is idle.
This approach is becoming a little cumbersome though, and I'm wondering if there is any benefit to having a collection of pre-constructed WebClient instances, or if creating them on the fly wouldn't be too much trouble?
Is there a way in an XML schema to specify that an element may contain either an empty string or a decimal?
If I specify the type as xs:decimal like this:
<xs:element name="Sample" type="xs:decimal" />
then a blank value would not pass validation:
<Sample/>
(I realize that the best way to indicate no value would be to not include the element, but I was wondering if there was a way to allow blank or decimal.)
Okay,
I am wondering having clear web.config file could be good but you know some shared web hosting companies don't allow us to touch things like machine.config and etc.
So If a lot of things have been moved onto machine.config, then will we be allowed to change things like we used to through web.config file.
I'm very new to HTTPS/SSL so excuse my lack of knowledge. Right now I'm trying to setup a simple Java client in which it connects to a web server through HTTPS. I've seen some example code online but can't seem to really make sense of it. Also I was wondering if there is a difference between setting it up on a Windows machine compared to another type of OS.
If anybody knows a good tutorial on this or can head me towards the right direction it would be appreciated.
Hi!
I was wondering if I can deallocate the depth buffer in iPhone OpenGL ES to conserve memory? Or it stays until the application finishes?
I only need the depth testing in the beginning of the application.
Hello Stackoverflowers,
I am writing my own custom Identity class which implements IIdentity. I don't need to change the default method IsAuthenticated but so now I was wondering how does the default IIdentity determines if it should return true or false?
I thought to find the answer in the FormsAuthenticationTicket I am using but not sure if that is correct.
Thanks in advance,
Pickels
I've tried integrating sfPHPOpenIdPlugin but that hit a dead-end since it's built for Symfony 1.2 and relies on deprecated PHP functionality; I also had a go with sfGoogleLoginPlugin which did authenticate correctly but lacks extended capability to retrieve user details (+ would restrict me to Google; obviously).
I'm thinking the most viable solution is to link in one of the various PHP libraries available into my model.
I'm wondering if anyone else has had any success/tips with such an integration and what libraries to consider?
Hey guys quick question, I have a preg match statement, and it checks for matches, but I was wondering how you can count the matches. Any advice appreciated.
$message='[tag] [tag]';
preg_match('/\[tag]\b/i',$message);
for example a count of this message string should lead to 2 matches
I'm trying to implement paging in a custom ListAdapter. Right now I'm just making the request for the next page when the last item in the ListView becomes visible, by checking in getView() if position is >= the size of ListAdapter.getCount().
It works fine, but I'm wondering if there's a better way (or a different way) that will only make the request once the last item in the list is actually visible to the user. Anyone know of a way?
Hello.
I've been developing my first rails application on my windows computer.
But now i have been setting up a debian server with nginx and passanger.
I've been using Github to keep track of my application and now i am wondering how i can get the Github version of my application to the debian server and put it in production mode?
Anybody that have a good guide about this or something?
I'm just wondering if someone could point me in the right direction here, I think i've been looking at it for too long so can't see the mistake.
The following code:
SqlCommand updateStyle = new SqlCommand("UPDATE [Lorenz].[dbo].[Layout] SET [bgColour] = '" + bgColour + "' , [textColour] = '" + txtColour + "WHERE <[LoweredUserName] ='" + currentUser + "' ", connection);
updateStyle.ExecuteNonQuery();
Is giving the error:
Incorrect syntax near 'admin'.
Unclosed quotation mark after the character string ' '.
I got Snow Leopard 64 bit, and I'm wondering how I am to install JOGL in order to develop with Eclipse.
A nice tut from A-Z would have been nice, since I'm suspecting some of my steps are very wrong.
I'm walking into a project with 500+ classes, and am wondering if anyone has had good experiences with automated modeling tools that can import from ASP.Net /C#?
It would be a bonus if I could get an automated model based on all the objects called to completely load a single ASP.Net page, with relationships indicating which objects are calling out to which other ones, etc.
Thanks for sharing your thoughts or recomendations.