instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am completely new to java, but I have urgent requirement to create a queue and thread. I am confused which queue class must be used. Here's the scenario: I need to a thread to handle user events from the application layer as well as callback events from the lower middleware layer. For this purpose, it was decided th...
stackexchange/codereview
This is karthik, I would like to implement aes encryption method on my iphone application . Already I have done it with some problem . I had encrypted the string successfully and I can send it to java server to decrypt it. But they cannot decrypt it to original string . As the same , They encrypt some data and have sen...
stackexchange/codereview
Say I commit some changes to a new local named branch called 'X'. Then I commit some other changes to my 'default' branch. Can I push only the changesets on 'default', but not the changes on 'X'? Might my approach be wrong? If so, please offer criticism.
stackexchange/codereview
How could I implement a stack using a queue?
stackexchange/codereview
I'm using http.server with the CGIHTTPRequestHandler on OS X 10.6 and the posix code path in run_cgi() does not appear to work properly. I'm calling a located at /cgi-bin/test.py from a form submit. For the better part of this afternoon I was receiving the error 'OSError: [Errno 2] No such file or directory' at the os...
stackexchange/codereview
I have a PowerShell script that needs to run under multiple hosts (PowerGUI, PowerShell ISE, etc...), but I am having an issue where sometimes a cmdlet doesn't exist under one of the hosts. Is there a way to check to see if a cmdlet exists so that I can wrap the code in an if block and do something else when it does no...
stackexchange/codereview
How do I convert an int to two bytes in C#?
stackexchange/codereview
I need help to consolidate/minify the code below. Originally I had a dropdown which controls div's visibility based on value. It works onClick but since it's a database page, it doesn't work onLoad so I had to add a 2nd logic. Any suggestions/input is greatly appreciated. $(document).ready(function () { var $caseStat...
stackexchange/codereview
I have made a function simular to the print_r function in php. Is there a way that you can add to the base functions of php so any sites that are on your server can use your new function. basically i have made a print r with a header to save the sessions to a file for debugging . does any one know if this is possible. ...
stackexchange/codereview
This randomly started happening again on my development computer. It works fine on the production server, so whatever. But I still need to test this here. Could not resolve host: (hostname); Host not found. I know about the security vulnerabilities with these settings. But right now, I care more about getting this to...
stackexchange/codereview
public class Main { public static void main(String args []){ long numberOfPrimes = 0; //Initialises variable numberOfPrimes to 0 (same for all other variables) int number = 1; int maxLimit = 10000000; boolean[] sieve = new boolean[maxLimit]; //creates new boolean array called sie...
stackexchange/codereview
I want to have a enum as a parameter of my function. Would this work? (UIFont*) myMethodName:(UITableViewCellStyle) cellStyle { //... if (cellStyle == UITableViewCellStyleValue2) // ... } Then I would call the method like this way UIFont *resultFont = [self myMethodName:UITableViewCellStyleSubtitle]; ...
stackexchange/codereview
the 3rd assert in this test fails but if I would move the Id property from IEntity to IFoo it will work I need to get all the properties, how to do this ? (whitout passing an instance, for some reason this way works) [TestFixture] public class DescriptorTests { [Test] public void Test() ...
stackexchange/codereview
Using XSLT I'm trying to work out a way to only emit a HTML table row when a value is different from the last iteration of the for-each loop. Essentially I want to make the table appear to have grouped headers, by only writing out the header once it changes. I'm having a bit of trouble conceptually working out how I co...
stackexchange/codereview
I'm having an issue getting RMagick to behave on Ubuntu Intrepid. RMagick installed correctly, but when I attempt to use the JPEG manipulation functions, I get the following error: Magick::ImageMagickError (Wrong JPEG library version: library is 62, caller expects 80 However, when I look in /usr/local/lib, I see libj...
stackexchange/codereview
I have an ActiveX control written in C# and working when run in an ActiveX compatible program (CoDeSys). The problem I've come across is that in order to allow CoDeSys to interact with the ActiveX control, CoDeSys requires the dll to export the function prototype: void ExecuteActiveXCall(IUnknown* pUnk, char* pszId, ch...
stackexchange/codereview
I'm writing a Thunderbird extension that performs a translation of the current message on demand. The translation is appended to the HTML in the message view pane (so it is not persistent). Can a Thunderbird (or Firefox) extension modify the content sent to a printer? I'd like my users to be able to print the translati...
stackexchange/codereview
I am researching for an application at the moment. One of the interesting ideas that came up were to record from both front facing camera and the facetime camera at the same time. Any of you know if this is feasible? Thanks :) EDIT: I mean to say front and rear cameras. I want to record from both cameras at once to two...
stackexchange/codereview
I am trying to determine which OS is the best one for VC++ VS2010. I know that Microsoft recommends Win7 x64 however I did some testing and the results are quite confusing: Build times (single threaded compilation on q9650 CPU) of reference VC++ project under different OS: Win XP 32bit: 00:02:50.95 Win 7 32bit: 00:03:...
stackexchange/codereview
What is the need of Core Data in iPhone development? What are the steps to implement it? What is mean by validating, migration in Core Data?
stackexchange/codereview
How can you test Retina Display on a simulator if it is possible?
stackexchange/codereview
code : SqlConnection sqlc = new SqlConnection( "Data Source=" + Environment.MachineName + @"\SQLEXPRESS;" + "Integrated security=true;" + "database=someDB"); SqlCommand sqlcmd; string tmp = string.Empty; for(int i = 0; i < 100000; i++) { tmp ...
stackexchange/codereview
In my iPhone App I have the capability to export data to an .txt file and send it via Mail – but have currently problems regarding the encoding. To attach the file to mail I simply create a NSData instance from a NSString instance as followed: NSData *dataToExport = [[NSData alloc] initWithData:[myExportString dataUsin...
stackexchange/codereview
I was just over looking at this question. The first thought that popped to my head was that ruby must have some sort of "as" type keyword like Python's import to help avoid namespace pollution. I've googled a bit but it seems that it's recommended to wrap your code in modules to avoid namespace problems with ruby. T...
stackexchange/codereview
Can anyone help me to write an Application using ASP.NET MVC 2 and LinqToSQL??? also explain the Repository Pattern!!!
stackexchange/codereview
My table is a dynamic one. E.g.: id SUBJECT 1 his 2 math 3 sci 4 opt 5 ENG 6 SOC The number of rows is not limited. There could be a hundred. I want output like this: ID 1 2 3 4 5 6 HIS MATH SCI OPT ENG SOC I could use a pivot query, but I would have to know the ...
stackexchange/codereview
How do I mute sound using C? Is there an ALSA function call? Are there any other function calls/APIs that can MUTE the microphone? I have written some code to do audio playback using ALSA, and I have noticed a DELAY before the sound starts playing ... how do I reduce DELAY or LATENCY on sound playback? x
stackexchange/codereview
I want to hold ipod Library song in NSData to send on Webservice. how i can get that song in NSdata
stackexchange/codereview
I have written a code in JAVA to search files from the system.User specifies the filename and extension on text input on applet window and on button click code establishes a connection to oracle database and searches the directory name from the database table.The code for searching works fine without applet and on usin...
stackexchange/codereview
My Code Igniter app has urls like this: http://servername/contexttroot/index.php/Sessions/login/ My question is, when the url is parsed how does Apache know that there isn't a folder called index.php? If I were the parser, that's what I would be looking for :) I know it works and CI's index.php gets called but I don't ...
stackexchange/codereview
I am new to .NET and have heard about several different ways of querying a SQL Server databse such as ADO.NET and the entity framework. Can anyone give me some advise about the best way to go for new applications? Thanks for any help or suggestions.
stackexchange/codereview
I saw the following implementation of the operator* as follows: class Rational { public: Rational(int numerator=0, int denominator=1); ... private: int n, d; // numerator and denominator friend const Rational operator*(const Rational& lhs, const Rational& rhs) { return Rati...
stackexchange/codereview
I'm seeing some really weird behavior where WPF isn't doing what I expect it to do. I've managed to boil the problem down the following bit of code: XAML: <Window x:Class="WpfApplication3.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com...
stackexchange/codereview
how do i change the datagrid's font size on the click of a button. size will be an input from a text box.
stackexchange/codereview
I have an JPA entity like this: @Entity @Table(name = "category") public class Category implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "id") private Integer id; @Basi...
stackexchange/codereview
I have an AIR application that is the following: <h1>Hello World</h1> It runs on my local machine: C:\inetpub\wwwroot\AIR\HelloWorldDestination.air And it runs if I choose "preview in Adobe AIR" in Dreamweaver. But I can't get it to download and install from my website. Here is the application.xml that Dreamweaver cre...
stackexchange/codereview
I am using emacs with tuareg mode and I always have the ocaml repl opened inside emacs. I was wondering if there's a way of compiling basic OCaml test files from within the repl so I don't have to run the compilation as a system command.
stackexchange/codereview
I'm writing a small script to see if certain ports on certain devices are in use or are open. My code is: for($c=1;$c<=16;$c++){ echo "<tr><td>Pod " . $c . "</td>"; for ($d=5000;$d<=5010;$d++){ $tmp=fsockopen("10.0.0." . $c,$d,$erstr, $errno, 1); if($tmp){ echo "<td class='o'>OPEN</td>"; fclose(...
stackexchange/codereview
I'm planning to develop for Windows Phone 7 inside a VirtualBox VM on an OSX host. Am I going to be able to debug my app on the device? I've had problems with USB on VMs before.
stackexchange/codereview
I have homework (Shell script) which I tried my best to make it work, but in vain. Can anyone help? Question: Write a bash program named fix-permissions.sh that accepts a list of users as arguments. If one user or more are given as arguments, the script should reset file permissions as follows: a. Directory ~/share to...
stackexchange/codereview
I've been pulling out my hair researching the net and various docs about .gitignore files. I'm a bit of a n00b with Unix/Terminal (using Mac OS X) and I can't for the life of me figure out how to ignore a folder's contents (any kind of content, be it a file or another folder, no matter how deep it is). I'm working on a...
stackexchange/codereview
First sorry for my english. I am having issues with a web service, this is provided by a client and sadly I cant change anything and they are refusing anyways, now they consume this webservice with java but in my work thats not posible. With the following code I can retrive a response up to 8k but anything beyond that ...
stackexchange/codereview
I am using Hibernate with my Spring MVC project. Lets say my model has 2 objects each linked to Oracle tables, respectively USERS (USERID, NAME) and USERMONEYDATA (CATEGORY, USERID, AMOUNT) My users can add , edit and remove rows in USERMONEYDATA, that belongs to them of course. Now, I want to have a view that aggrega...
stackexchange/codereview
I'm very new to Json and JQuery. I got autocomplete Jquery UI plugin that return a Json Object. Ex it return ["Tim ferriss","stack overflow","<strong>Oscar</strong> Wilde"] In the browser the strong tag is seen as &lt;strong&gt;Osca&lt;/strong&gt;r Wilde Why? I think is a very stupid error.. Edit: Nothing worked so fa...
stackexchange/codereview
I use the WCFTestClient that is provided with visual studio to test my service. The thing is that the tool is working for the service that is deployed in wisual studio with my aplication. But if I try to connect to a deployed instance on another machine I get the following exception. Has anyone solved this issue? The ...
stackexchange/codereview
I'm building an Amazon EC-2 cloud-based build server for my personal development projects using Team City Professional. I only intend to use it of an evening and my project builds are going to be quite small. At this stage, is there a good reason why I should go for two servers: one hosting the Team City website anot...
stackexchange/codereview
I have a Spring application (not a web app) that should be possible to run offline. However, when I try to do that, it crashes with this error message: - Loading XML bean definitions from class path resource [applicationContext.xml] 21220 [main] WARN org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Ig...
stackexchange/codereview
I am interested in learning Ruby/RoR, but it seems to have lost the popularity it had a few short years ago, and from what I've read, few webhosts support it. Is it on its way out?
stackexchange/codereview
I have a form submit link labeled "OK", and I want to have a spinner to indicate that something is happening when it's clicked. I tried adding an image to the clicked span before submitting the form, but it doesn't appear: function submitMyForm() { $(this).html($(this).html() + "&nbsp;&nbsp;<img src='/img/spinner....
stackexchange/codereview
There is an HTML file (whose contents I do not control) that has several input elements all with the same fixed id attribute of "search_query". The contents of the file can change, but I know that I always want to get the second input element with the id attribute "search_query". I need an XPath expression to do this. ...
stackexchange/codereview
Am using mail.jar and activation.jar as classpath and have programmed a automatic mail sending and it works fine. In my program, the content is declared as a String. But my requirement is, I need to retrieve few of the counts from different tables of my SQL DB and attach the same in my content of the mail. I think decl...
stackexchange/codereview
I've got a multiple project setup, using Maven and the Findbugs plugin. I need to exclude some files in one of the child projects, so I added it to findbugs-exclude.xml. That works when I build in the subproject. My issue comes when I try to build at top level. Maven is not finding the findbugs-exclude.xml in the su...
stackexchange/codereview
I'm having a hard time wrapping my head around XSLT but I heard it's possible to split an XML file into multiple files. Basically I'd like to copy all the elements up to the first file and after the last file and then add the individual file content for each output file. Could someone give me some pointers on this if ...
stackexchange/codereview
I wanted add a hook on before_save. Validation happens before "before_save" is called, so I moved it to before_validation :on =>:save. Now the problem is, when I do @object.save_without_validation (sometimes I had to use this). my before_validation hook doesn't get called. Am I missing something or is there a more rob...
stackexchange/codereview
I am trying to build a game board 8x8 for a small game of battleship with game pieces in place (kind of like checkers) so i could move the pieces with MySQL the players can move freely in the board to go against each others battleships. the pieces will be place in predetermined spaces while other space will be empty an...
stackexchange/codereview
I have an existing Tomcat Installation that is running on production mode right now. It runs as a windows service. What I want is to add another tomcat instance but points to a different port but they both resides in the same Server Machine. Can this be done without having to shutdown the other instance. I browse the ...
stackexchange/codereview
Possible Duplicate: Get current date and time in PHP I was wondering how can I get the current date and time using PHP.
stackexchange/codereview
I've created a program in python and mySQL which creates a database and imports the data from text files and puts them into 4 different columns. The code works but I want to change the code and create functions. Can anyone please help me create a function that creates a mySQL database? Here is the code I have at the m...
stackexchange/codereview
Within an ASP.NET AJAX UpdatePanel on my page I have a submit button which has some custom javascript validation applied which set a global _cancelGeneralSettingsUpdate flag depending on the results of the validation. Everything works unless you enter an invalid value, correct it, and resubmit. In this case the variab...
stackexchange/codereview
How is should a HLOCAL data type be converted to a LPTSTR data type? I'm trying to get a code snippet from Microsoft working, and this is the only error, of which I'm not sure how to resolve: // Create a HDEVINFO with all present devices. hDevInfo = SetupDiGetClassDevs(NULL, 0, // Enumerator 0, DIGCF_PRESE...
stackexchange/codereview
I have a requirement that disabled JButton be read by JAWS version 9. i.e. if I have a JButton with the text "True", it ought to be read something like "True, disabled button". But when I use setEnabled(false) it no longer participates in the tab focus sequence, and therefore never gets read. Is it possible to make a d...
stackexchange/codereview
I'm looking for a way to load more recent data as date x in Power Pivot and link/add them to an existing table. Background: The user downloads data from a datafeed and saves them in Excel Power Pivot. The data will be deleted from the server afterwards. In the next step, new data must be added to the existing table in ...
stackexchange/codereview
I created an index.html page that have 3 different tabs. With the function tabs() of jQuery UI I want to load an html page with Ajax. Every HTML page use jQuery library, so every page have this code: <link type="text/css" href="css/redmond/jquery-ui-1.8.5.custom.css" rel="stylesheet" /> <script type="text/javascript" s...
stackexchange/codereview
Good morning, At the startup of the application I am writing I need to read about 1,600,000 entries from a file to a Dictionary<Tuple<String, String>, Int32>. It is taking about 4-5 seconds to build the whole structure using a BinaryReader (using a FileReader takes about the same time). I profiled the code and found th...
stackexchange/codereview
I have a label in a footertemplate of a gridviewcolumn. I want to put a calculated value (total of the rowvalues) in this label in javascript. I can access all the textboxes in my Itemtemplates, but I don't know how to find my label in my foortertemplates. .aspx: column in gridview <asp:TemplateField HeaderText="Prij...
stackexchange/codereview
i have a button , this button makes a post back for the page(the normal case),, and i have an update panel contains some controls .. when click the button the update panel is not affected by the button,and when adding trigger for this button on the update panel,, the other controls (which are not in the update panel)ar...
stackexchange/codereview
I'm trying to figure out if it would be possible to stick to the mantra "Program against an interface, not an implementation." while using the Entity Framework 4.0. While I found a page explaining how to stick to aforementioned rule while using Linq-to-SQL (look here) I'm very keen to know if it would be possible to do...
stackexchange/codereview
Heroku doesn't seem to update my database schema when I deploy. Here are the details: Here is what is should look like for the User class: create_table "users", :force => true do |t| t.string "username" t.datetime "created_at" t.datetime "updated_at" t.string "email" t.string "encrypted_password" t.string "salt...
stackexchange/codereview
I have an array with custom objects. Each array item has a field named "name". Now I want to remove duplicate entries based on this name value. How should I go about achieving this?
stackexchange/codereview
I am trying to extract month and year from database and show it as selected in the dropdown. Ex: Month and year, consider 2 and 2013. I want the dropdown expmonth to show Febraury and expyear as 2013 when the page is loaded. When i tried the below code, it did not show me 2 and 2013 instead showed Jan and 2010 which is...
stackexchange/codereview
As far as I know, barcode as such can't be rotated (iReport doesn't have that property and neither does the Barbecue Barcode in a Java class). I've seen some examples, but they are incomplete and I don't understand how to use them, eg.: public class BarbecueRenderer extends JRAbstractSvgRenderer { private boolean rota...
stackexchange/codereview
I want to create a textfield element in Zend Form which always type in uppercase whether CapsLock is On or Off. Thanks
stackexchange/codereview
Are there scenarios where it is (for some reason) required to place the CSS rule inside the style attribute of the HTML tag directly instead of placing the CSS rule inside a selector in the STYLE element in the HEAD of the HTML email template? (I am asking for the most common CSS selectors, like type, class, ID, desc...
stackexchange/codereview
I'm passing some data through Json to a Webservice. My problem is that i'm passing html (from a tinyMCE input), so the var has content using quotes and that's giving me problems. I'm passing the values like this: data: '{ id: "' + news_id + '", title: "' + news_title + '", body: "' + news_body + '" }', Is there anywa...
stackexchange/codereview
I have a code that try to find the Eulerian path like this. But somehow it doesn't work. What's wrong with the code? use strict; use warnings; use Data::Dumper; use Carp; my %graphs = ( 1 => [2,3], 2 => [1,3,4,5], 3 =>[1,2,4,5], 4 => [2,3,5], 5 => [2,3,4]); my @path = eulerPath(%graphs); sub eulerPath { my %grap...
stackexchange/codereview
When i run my android application it shows an exception "android runtime exception" with a message "Error: thread attach failed". it happens before the execution of "OnCreate" mathod of main class. what will be reason for that error?? anybody please help.
stackexchange/codereview
In my app I need to add a UIView dynamically whenever user taps on a button in my main UIViewController. How can I do this?
stackexchange/codereview
I need to calculate the weeks out from a date in my MySQL select statement. There is a date column in one of the tables, and I need to calculate how many weeks away the date is. SELECT EventDate, (calculation) AS WeeksOut FROM Events; Example: 6 days away, weeks out = 0 7 days away, weeks out = 1 13 days away, weeks ...
stackexchange/codereview
I'm currently planning an application which involves manipulating PDFs. My goal is to have a program that i can pass in a PDF as an input which then saves separated grayscale images of the colour channels that the PDF consists of as an output. This is basically a simple RIP. I'm currently using a solution using GhostSc...
stackexchange/codereview
I downloaded Wix V3.0 and installed. An unhandled exception happened each time when I tried to use the Click Through for Isolated Applications type. So i cannot use it. we are using .Net 3.5 we cannot upgrade to .Net 4. anybody knows a workaround? thanks,
stackexchange/codereview
How to copy a disk based sqlite table to a memory database in python? I know the schema of the table.
stackexchange/codereview
ldd displays the memory addresses where the shared libraries are linked at runtime $ cat one.c #include<stdio.h> int main() { printf ("%d", 45); } $ gcc one.c -o one -O3 $ ldd one linux-gate.so.1 => (0x00331000) libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00bc2000) /lib/ld-linux.so.2 (0x006dc000) $ ...
stackexchange/codereview
I am trying to compile a Delpho 2010 project using the msbuild tool. Unfortunately when firing the command msbuild Delphi.dproj it returns the error code MSB4040, which means that there is no target in the project. So far a RAD Delphi 2010 environment is still installed on the machine. Does anybody know which files do...
stackexchange/codereview
I want to pass an asp.net membership user name to a subroutine and retrieve the profile property named FullName for that user, how can i achive this in vb.net? Thanks in advance.
stackexchange/codereview
I am attempting to write a DLL using the C# .NET Framework 2.0. Everything compiles okay, but when I try to access the DLL from my application, it fails when attempting to get the procedure address. So, I oped the DLL in Dependency Walker, and all of my public functions are missing! My DLL, so far, is fairly straight...
stackexchange/codereview
Currently I am working on a PHP script to output a CSV file from entries in a MySQL database. My problem lies in how to correctly output the values. Many of the entries in the MySQL database will contain commas and quotes, which destroy the format of the CSV file if I just plainly print them out to the file. I'm awar...
stackexchange/codereview
I've got a div over an iframe, in the iframe there's a website that contains a youtube movie. On mac firefox and safari everytyhing works fine, on windows both IE and FF put flash on top of my div. The situation I have is really similar to google image interface, I noticed that google images manages to correctly overly...
stackexchange/codereview
Is it possible? Would it require a existing whitewashed and/or blacklisted datasets, or not? How would you know an exception did not exist?
stackexchange/codereview
Ok, I have a complex recursion problem. I want to get a dependecy installation sequence of all of my objcts (all_objects table) in my Oracle 11g database. First I have created a view holding all dependencies create or replace view REALLY_ALL_DEPENDENCIES as select * from ALL_DEPENDENCIES union select owner, index_...
stackexchange/codereview
I'm using c# and visual studio to extract data from an excel sheet, put it into an array (adding commas to the end of each string) and then output it to a .CSV file. Now I've run into a snag that occurs when a cell has either no data, or not the data expected (i.e. an image). I am assuming that this is on the reading e...
stackexchange/codereview
The Android platform has a RatingBar widget. I believe there is a similar field for BlackBerry because BlackBerry AppWorld uses a rating bar. What field are they are using for that?
stackexchange/codereview
I'm trying to upgrade ant to 1.8.1 via macports. When I run live-check I get this: apache-ant seems to have been updated (port version: 1.7.1, new version: 1.8.1) but when i run port install it installs 1.7.1 and when I run upgrade it does nothing
stackexchange/codereview
The following small snippet of code cannot be changed once deployed (it's in an RIA) so everything must be loaded via a bootstrapper.js file: <div id="someDivID"></div> <script type="text/javascript" src="bootstrapper.js"></script> What's the best way to load up all the js, css, and markup? Is there a better (cleaner...
stackexchange/codereview
how can I add an item to Gnome's context menu? I want 'shred' to be in there, too. KR
stackexchange/codereview
What is the best way to manage GPS coordinates (latitude and longitude) in django models ? I know that there is a module called GeoDjango but reading the tutorial seems dedicated to GIS and not simply to manage the latitude and longitude. I do not care to have convenient interface for the admin because int the applicat...
stackexchange/codereview
I'm writing a blog app with Django. I want to enable comment writers to use some tags (like <strong>, a, et cetera) but disable all others. In addition, I want to let them put code in <code> tags, and have pygments parse them. For example, someone might write this comment: I like this article, but the third code exampl...
stackexchange/codereview
After adding a destination(Queue) to Destination Resources from Admin Console at Resources/JMS Resources/Destination Resources, no physical destinations are displayed at server(Admin Server)/JMS Physical Destinations .Instead, the following error message is displayed below the heading: An error has occured Unable to li...
stackexchange/codereview
I am testing basic math functions that'll return its mean/variance/standard deviation. The problem I am facing is that I cannot get the precision of "expected value" to math what is returned by the function. For example, if the variance function returns 50.5555555555566, even if I set the expected value explicitly to 5...
stackexchange/codereview
I need to know if a Type implements an interface. Dim asmRule As System.Reflection.Assembly = System.Reflection.Assembly.LoadFrom(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Rule.dll")) For Each typeAsm As System.Type In asmRule.GetTypes If TypeOf typeAsm Is Rule.IRule Then 'that doe...
stackexchange/codereview
Is it possible to use a niceMock and a "normal" mock within the same mockControl object? Currently if I try to set one of the mock to nice someMock = mockControl.createMock(someClass.class); EasyMock.resetToNice(someMock); It seems to reset the entire control to nice So i would like a way to have different mock type...
stackexchange/codereview