I am using c# in .NET 2.0. I HAVE to send the file to the C drive on the server. Is this the defaut? IE, would this go to the C drive?
ftp://myhost/test.txt
I need to generate random integer between 1-n (where n is a positive whole number) to use for a unit test. I don't need something overly complicated to ensure true randomnesses - just an old fashioned random number.
How would I do that?
Hi,
I have stored procedure that takes input parameter of table type.
procedure test( name samptable type);
My table has the structure like
table:
samptable(
name chracter varying;
address text[];
)
So how shoul i pass the values to the function to fill the table.
Much like lisp is often considered a list based programming language what languages are considered map based?
I remember reading about one a few years back, but can not longer find a reference to it. It looked something like:
[if:test then:<code> else:<more code>]
edit:
and more where quoted code blocks which would be conditional evaluated. In this fashion if/cond and others would not be special form as they are in lisp/scheme.
Hi, I have a struts app with a jsp with the code:
...
...
<input name="inrofol" class="inputfilter" id="inrofol" size="22" maxlength="20" type="text">
...
And even though it's not linked to the associated form bean, I get the exception
Error 500: No getter method for property: "inrofol" of bean: "com.test.forms.CompForm"
Any hints ? Thanks
Anytime I use 'script table as' - 'Insert To' (or other command), the script generated automatically places the database name in the script. Such as:
INSERT INTO [DatabaseName].[dbo].[tblToBeInserted] ...
While not a huge problem to just delete it, it has slipped by a few times and the script breaks if run on a different server with a different database name but has the same schema. (Such as running on [DatabaseName.Test])
Is there an option I can change, or can I modify the output in any way to remove this?
My test page is processed if believe to trace in 46 ms, while 11 of them I am doing this
20:53:06.111597 system.db.CDbConnection Opening DB connection
20:53:06.118046 system.db.CDbCommand Querying SQL: SHOW COLUMNS FROM `questions`
20:53:06.122476 system.db.CDbCommand Querying SQL: SHOW CREATE TABLE `questions`
Is this obligatory?
I'm looking for a python project to use as example to learning python.
The project should have these features:
is almost fully unit tested
use consistently the code convention recommended by PEP 8
it's elements are almost fully documented
Extra point features are:
building, assembling, and release automation
EDIT:
The Question is too generic. I prepared a more specific question about the unit-test part.
I'm trying to avoid using an in memory database for testing (though I might have to do this if the following is impossible). I'm using NHibernate 3.0 with LINQ. I'd like to be able to mock session.Query<T>() to return some dummy values but I can't since it's an extension method and these are pretty much impossible to test.
Does anyone have any suggestions (other than using an in memory database) for testing session queries with LINQ?
How do I randomly select a value for an enum type in C++?
I would like to do something like this.
enum my_type(A,B,C,D,E,F,G,h,J,V);
my_type test(rand() % 10);
But this is illegal... there is not an implicit conversion from int to an enum type.
Can any one please let me know the best way to use IF statement in mysql query to show if the "email" field is NULL then it should show as "no email"...
Postcode Telephone Email
----------------------------------------------------------
BS20 0QN 1275373088 no email
BS20 0QN 1275373088 no email
PO9 4HG 023 92474208 [email protected]
SO43 7DS 07801 715200 [email protected]
----------------------------------------------------------
I'm using maven to build the project and compile failed because I put class Test2 in Test.java,
but is it because of maven or simply because java itself doesn't support this?
BTW,how can I open a maven project with eclipse?
Assuming a very simple program that:
-ask a name.
-store the name in a variable.
-display the variable content on the screen.
It's so simple that is the first thing that one learns.
But my problem is that I don't know how to do the same thing if I enter the name using japanese characters.
So, if you know how to do this in C++, please show me an example (that I can compile and test)
Thanks.
i have a table employee(id,dept_id,salary,hire_date,job_id) . the following query i have to execute.
Show all the employee who were hired on the day of the week on which least no of employee were hired.
i have done the query, but am not able to get the least. please check if am correct.
select id, WEEKDAY(hire_date)+1 as days,count(WEEKDAY(hire_date)+1) as count
from test.employee group by days
I'm totally blocked on this.
See this pastie for sample code: http://pastie.org/990040
The first test will fail.
The user model validates an associated address model, but is only supposed to do it if a flag is true. In practice it does it all the time.
What is going on?
I need to know if there is some way to replace any string as @ or * or ? or & without to put the "\" before it
Example
perl -pe 'next if /^#/; s/\@d\&/new_value/ if /param5/' test
in this example need to replace the @d& with new_value
but I need to put the "\" before @ or &
can be other way without to put the "\" because I have random char that can be in the old value.
Is there any unit testing framework for C like JUnit and Nunit for java and .NET?
Or how do we test a piece of code written in C for different scenarios?
Thanks in advance......
I created podcast rss feed - http://topdj-test.com.ua/podcast/audio-files/12/3/
And I set up "<image>" and "<itunes:image>" tags. But when I put this feed to iTunes, the picture of podcast wasn't shown in iTunes in artwork section.
What have I done wrong?
I'm trying to use animate function to change the height and opacity for a DIV. The div has a image background in CSS, it works fine on Firefox and Safari, but when i test it on IE the background is being removed. This is my code:
if (jQuery.support.opacity) {
jQuery('#list_box').animate({opacity: '1',height: '300px',top: newTop},{duration: 300});
} else {
jQuery('#list_box').animate({filter: 'alpha(opacity=100)',height: '300px',top: newTop},{duration: 300});
}
How can i fix it?
I'm trying to save some text inside an environment for later use. The smallest test case I could come up with is this. The saved text in the sbox isn't available after the environment is closed. How can I work around that? Thanks.
\documentclass{article}
\begin{document}
\newsavebox{\somebox}
\begin{itemize}
\item hello1
\item hello1 \sbox{\somebox}{Some text}
\end{itemize}
This should show something, but does not: "\usebox{\somebox}"
\end{document}
How to store username password in device memory.
Even after the user closes the application and returns back , he should be able to authenticate his username and password.
Right now I am testing in Eclipse... so please help me with some pointers/links which will allow me to test in Eclipse and eventually run on Mobile.
I have the following simple code:
ofstream output("test");
output << 'a';
When I do an octal dump of the file, I get this:
0000000 000141
0000001
I can see that 000141 (in base 8) is 8 bits wide and 0000001 is probably EOF.
What is the first byte of all 0's and why is it there? I know it is null is ascii
but what is its purpose?