https://stackoverflow.com/questions/49183518/independent-paths-of-power-number

Member Avatar
Member Avatar
-3 forum 5

Code Exercise – BIQ-001 Mr.X owns a small business in a region with poor law-and-order. Recently his warehouse has been plagued by thieves. Gangs of thieves raid over his warehouse from time to time, stealing his raw material, affecting his business. He has studied the occurrances and noticed it that they are cyclical. Assuming that a work week starts every Monday, and Sat and Sun are holidays, predict the total number of days when business would be affected. Picture (Metafile) please see attached jpgeg e.g. (Refer to Image) He has noticed that currently there seem to be 2 gangs. Gang1 …

Member Avatar
Member Avatar
+0 forum 8

Hi, for my final thesis I choose to elaborate about fuzzing. When I will defending my thesis I should have some results, some bugs. I would like to test some unix program but I need to choose carefully. I need the probability of finding a bug to be the greatest. Any ideas? Thank you!

Member Avatar
Member Avatar
+0 forum 8

angular .module('abc') .factory('dashboard', dashboard); function dashboard($http, notifier) { var service = { getAllMasterJobsNames: getAllMasterJobsNames }; return service; function getAllMasterJobsNames(request) { return $http.post('/JSONServices/JSONCampusManagementService.svc/GetAllMasterJobsNames', request).then( function (response) { if (angular.isUndefined(response.data) || (angular.isDefined(response.data.IsException) && response.data .IsException)) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); } return response; }, function (response) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); return response; }); } } })(); service.js 'use strict'; describe('dashboardService', function () { var dashboardService; beforeEach(module('abc')); beforeEach(inject(function (_dashboard_) { dashboardService = _dashboard_; })); it('getAllMasterJobsNames method should defined and should return promise', function () { expect(dashboard.getAllMasterJobsNames).toBeTruthy(); expect(dashboard.getAllMasterJobsNames.name).toEqual('getAllMasterJobsNames'); expect(dashboard.getAllMasterJobsNames(0)).toEqual({$$state:{status:0}}); }); }); any one …

Member Avatar
+0 forum 0

fstream file; file.open("PasswordGenFile.dat",ios::out); In writing into a .dat file what does the following line mean? file.write((char *) this, sizeof(PasswordGenerator)); And how can i convert this bit of code if i want to write it into a .txt file?

Member Avatar
Member Avatar
+0 forum 1

Hi guys, I had a test the other day and missed a question out because it confused the hell out of me. I dont know if it was a badly written question or just me. Heres the program below: public static class Mailing { public static void SendTestEmail() { List<Person> people = new List<Person>(); people.Add(new Person("Joe", "Bloggs", "Joe.Bloggs@foo.bar")); people.Add(new Person("John", "Smith", "John.Smith@foo.bar")); people.Add(new Person("Ann", "Other", "Ann.Other@foo.bar")); string emailSubject = "Training cancellation notification"; string emailText = "Dear user, this is an email to inform you that your training course on the 1st of January has been cancelled"; SendEmail(emailSubject, emailText, people); } …

Member Avatar
Member Avatar
+0 forum 8

HI, I am writing unit test cases for silver light view model. When i am trying to mock edmx context, i am getting errors as in the screen shot. Please suggest how to solve the issue. ![9559cdb1d93cc91198a358bac62eeca5](/attachments/large/2/9559cdb1d93cc91198a358bac62eeca5.png "9559cdb1d93cc91198a358bac62eeca5") Thanks kvk

Member Avatar
+0 forum 0

Heya! Okay, so I was able to register without using javascript. I am able to update my profile without javascript. I can login without javascript, and even send private messages without javascript. I can definitely make posts without javascript. Somewhat puzzlingly, I'm unable to *respond* to posts without javascript, which is of greater than academic importance for the reason that my phone does not support javascript, and my primary interest to this lovely discussion board is my phone. Thoughts? Suggestions?

Member Avatar
Member Avatar
+0 forum 4

hlo, i have a code in php with different functions. i want to test that functionality with php code. plz tell me how this automated test code would be written? individually i had test these functions but there is a requirement of a single code with which all the functions run and give the results. thanks

Member Avatar
Member Avatar
+0 forum 4

Hey guys I had an assignment to recursively write the Towers of Hanoi then test it. I did not have too much of an issue getting the program written But I am not sure what the book means by test the efficiency do they want the number of moves my program makes, or do they want the time it takes to run. And how do I get either one? help is appreciated [CODE] import TerminalIO.KeyboardReader; public class towers { public static void main(String[] args) { KeyboardReader reader = new KeyboardReader(); int numberofRings = reader.readInt("Enter number of Rings: "); move (numberofRings, …

Member Avatar
Member Avatar
+0 forum 10

I was writing unit tests for half year or more at my work, hoping that I do good job. But the problem is I rarely see the benefit of them. So I don't understand, why it is good. Many of the test functions look like this - they test model functions. protected function test_get_dogs_8_subtypes() { $test_result = $this->Dogs_8_model->get_dogs_8_subtypes(); $expected_result = 'is_array'; $test_name = __FUNCTION__; $this->unit->run($test_result, $expected_result, $test_name); } I run, if there is errors they fail so ok. But they will fail when I modify them. If I don't then they will never fail. But when I modify some model …

Member Avatar
Member Avatar
+0 forum 10

Greetings fellow, I have a website and I would like to get the first "wave" of users for beta testing. The question is: where can I post an invitations to the site's beta testing? Perhaps there are specialized services or something like that? Thanks in advance!

Member Avatar
Member Avatar
+0 forum 2

The media, online and off, has been full of scare stories about the 'biggest Internet attack ever' and how a distributed denial of service (DDoS) campaign aimed against anti-spam outfit Spamhaus peaked at an attack volume of 300 Gbps (the highest ever recorded by those who record such things) was 'slowing down the global Internet'. DaniWeb didn't join the rush to shout 'the sky is falling' as, frankly, we didn't believe it as there was precious little evidence to be found that the DDoS attack was impacting anyone other than Spamhaus along with it's anti-DDoS protection service CloudFlare and their …

Member Avatar
Member Avatar
+4 forum 3

Hello, I am trying to implement the repository pattern with my tests so that I can save and review all test information at a later point. So far I have a shell of what I need to do but as of now I am stuck on where to go from here. So far I have my interfaces page, repository page done and my actual tests. Here is what I have so far: Interfaces page: internal interface ITestRepository { void Save(string Case, DateTime dateTime, bool DidPass, object req, object res); void Save(string artifact); } And here is my repo page. Now …

Member Avatar
Member Avatar
+0 forum 7

I wrote out a test for a Complex class on python but I'm getting an error. Here's what I have: class Complex: def __init__(self, real=0, imaginary=0): self._r=real self._i=imaginary def __add__ (self, other): return Complex((self._r + other._r), (self._i + other._i)) def __sub__ (self, other): return Complex((self._r - other._r), (self._i - other._i)) def __mul__ (self, other): return Complex((self._r * other._r - self._i * other._i), (self._r * other._i + self._i * other._r)) def __truediv__ (self, other): return Complex(((self._r * other._r + self._i * other._i)) / (self._i**2 + other._i**2), ((self._r * other._i - other._r * self._i)) / (self._i**2 + other._i**2)) def __str__ (self): if …

Member Avatar
Member Avatar
+0 forum 3

Hello, I was wondering if there is a way to display formatting in a richtextbox eg. If i put **test** the word "test" would be i bold (only the word "test" and the rest would stay the normal). or if i put `test` the word "test" would be i size 10 (only the word "test" and the rest would stay the normal size). Please help

Member Avatar
Member Avatar
+0 forum 3

Ok, so I'm working from a book called Agile Web Developement with Rails 4th Edition. I got up to page 83 where they have us running tests to ensure proper validation of our code up to this point. So I have checked and rechecked to make sure my code is identical to theirs. I keep getting an error. This is the test: test "product attributes must not be empty" do product = Product.new assert product.invalid? assert product.errors[:title].any? assert product.errors[:description].any? assert product.errors[:price].any? assert product.errors[:image_url].any? end This is the error I get: ==================================== /home/mint/Documents/depot/test/unit/product_test.rb:1:in `test': wrong number of arguments (1 for 2) …

Member Avatar
Member Avatar
+0 forum 6

my pc w/intel p4, 3.00 Ghz, 3Gb ram, 60 Gb Hhd(not proven to be running, yet), no O/S yet, formatted HD wiped with sys mechanic, tryn to boot from cd rom (windows oem XP pro sp3), turn on screen imm says " Intel Boot Agent FE v 4.1.10 PXE-E61:Media test failure, check cable PXE-M0F:Exiting Intel Boot Agent attempeted to eliminate network boot by f10 goto start up bios. adjust bootup order and disableing Network boot. however it keeps comming back....

Member Avatar
Member Avatar
+0 forum 4

Hi All, not the usual, "how can you help me" thread, but a heads-up on a templating engine I've been using for a while called RainTPL. A few users have posted threads of late asking about templates. I thought I'd give this one a plug, especially as Federico (the author) has just published a speed test page on his site: [url]http://www.raintpl.com/PHP-Template-Engines-Speed-Test/[/url] If you've used templaters like Smarty, RainTPL should seem very simple to use - just "8 tags and 2 methods". If you're interested, I've documented a multilingual implementation at [URL="http://diafol.org/rain.php"]diafol.org/rain.php[/URL], which is itself built on RainTPL. Anybody have any …

Member Avatar
Member Avatar
+0 forum 18

Maybe it's just me, but I like taking online typing tests, ever since those Mavis Beacon days nearly 20 years ago. Gosh that makes me feel old, but I do turn 30 in three hours :-P In any case ... I wrote a typing test script. Check it out http://www.daniweb.com/typing/test

Member Avatar
Member Avatar
+6 forum 38

Hi, I'm new to junit. I want to create test cases for if condition,loops. do we have any guidelines to write test cases for if conditions.Can any1 explain with an example. Thanks in advance. Lavanya

Member Avatar
Member Avatar
+0 forum 2

Hey! **Im here to ask for Your advice.** For a school project we choosed to create a android application that uses a database. As we are thrid year studens we have some experiance. But it is not as notable. We have **seen some**: **Access SQL** only on acess. How to create a **PHP** website using **MYSQL** as **server side** application. I have used **postgres SQL** with **pgAdmin** to develop a java web application as a part job. **Our valus & goals:** -keep it simple. -db must be on server. (to gain some administrative features) -Cover 80% of code with tests …

Member Avatar
Member Avatar
+0 forum 3

I initialize the selenium like [CODE]public void setUp() throws Exception { setUp("http://localhost/", "*firefox"); } [/CODE] and I write my test in the method like [CODE]public void testUntitled() throws Exception { boo(); foo(); }[/CODE] But it gives error like [CODE]java.lang.RuntimeException: Could not start Selenium session: Failed to start new browser session: Error while launching browser at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89) at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:123) at com.thoughtworks.selenium.SeleneseTestBase.setUp(SeleneseTestBase.java:104) at com.thoughtworks.selenium.SeleneseTestCase.setUp(SeleneseTestCase.java:78) at ComserTest_v2.setUp(ComserTest_v2.java:12) at junit.framework.TestCase.runBare(TestCase.java:132) at com.thoughtworks.selenium.SeleneseTestCase.runBare(SeleneseTestCase.java:212) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start …

Member Avatar
Member Avatar
+0 forum 2

hi I am interested to make a website wherein student can answer queries in MCQ format--- The requirements go like this 1. Bank PO EXAM 2. EXAM HAS 4 MODULES 3. EACH MODULE HAS MIN. 2-4 SUB-MODULES Ex English Module has 4 sub- modules.Each of them requires a different set of display. 4. ALLOW TO LOGIN,TAKE TEST posted in theri Homepage,evaluate their results Measure thier percentile system vis-a vis toal no. of test takers offer product line Parag 9819001074 **Bold Text Here**

Member Avatar
+0 forum 0

A way to measure internet speed through javascript is given here ... [Click Here](http://jsfiddle.net/yahavbr/tEFpC/2/) for it, it uses a big image to download and then divides the time taken by the size of the image ....! Is it possible to measure the speed using a video streaming website like Youtube ? i.e. if I enter the video link, after a specified time of bufferring, I get to know the approx internet speed ? Please help!

Member Avatar
Member Avatar
+0 forum 1

I want to test some graphics work I am doing with the Utah Teapot model. The issue is that all the data I can find on it uses bezier patches (which I have no clue how to render) does anybody know how I could get the data in a form similar to this: triangle 1: {x1,y1,z1},{x2,y2,z2},{x3,y3,z3} triangle 2: {x1,y1,z1},{x2,y2,z2},{x3,y3,z3} Et cetera, Et cetera

Member Avatar
Member Avatar
+0 forum 2

Hi! I'm working with a huge software system with a lot of people being involved in the coding through many years. I'm noticing more and more that there is a lot of bad code, especially get methods here and there with huge side effects, which you totally not expect. So it crossed my mind that it would be great with a unit test that detects side effects in get methods and reports them so we can clean up that bad code. But it seems kind of difficult, you would have to analyze the code somehow and make sure that nothing …

Member Avatar
Member Avatar
+0 forum 2

Hey all! I was thinking about how to make a program, in which you write some c++ code and program tests that code with given examples. For example you input following code in that program: [CODE]#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b; return 0; } [/CODE] the program compiles and tests the code (for example it tests if you input 1 and 3, will 4 be written in console using that code) and gives you information if the program is working or not. Or in other …

Member Avatar
Member Avatar
+0 forum 2

hi, I have two class say class A and class B. Now the methods in class B are used only by class A. When I checked class B, I found that few methods are static and few methods are internal. Can you sugest me is it fine ? Or since I already have an public instance of Class B in class A so I can remove the static modifier and make it internal. Is there any performance related issues ? Thanks.

Member Avatar
Member Avatar
+0 forum 2

GUIdancer 3.2, the latest version of flagship automated GUI testing tool from Bredex, now "officially" supports Windows 7 and Vista, and includes additional enhancements to its library of pre-built test actions. It began shipping on Nov. 3. Before you decide that US$5785 is too much to pay for an automated keyword testing tool (more if you're subject to Germany's voracious appropriation tax), take a look at [these demos of the software](http://www.bredex.de/en/guidancer/downloads.html) in action. You can also [try the software](https://cgi.bredex.de/GUIdancerShop/downloadpage.do) for two weeks for free. There are versions for Linux and Windows; a Mac OX S version is in beta. According …

Member Avatar
Member Avatar
-2 forum 1

The End.