instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to write a Perl script which calls a URL with certain parameters.
stackexchange/codereview
Can anyone explain to me the relationship between ScrollViewer and SizeChanged event? Whenever I put a scrollViewer around a grid, numerous SizeChanged event gets fired. What is the relationship between the two? Thanks a lot. EDIT: From mdm20's comment, I noticed that the ActualWidth and ActualHeight of the grid increa...
stackexchange/codereview
I have written a very basic jquery script that is true theorically but not in browser: <ul class="menUl"> <li> <a href="#">TEMPLATE<span>DESIGN</span></a> </li> <li> <a href="#">FRONTEND<span>CODING</span></a> </li> <li> <a href="#">SERVESIDE<span>CODING</span></a> </li> <li> <a href="#">CONTACT<span>ME</span><...
stackexchange/codereview
template<typename T> class CompoundT { // primary template public: enum { IsPtrT = 0, IsRefT = 0, IsArrayT = 0, IsFuncT = 0, IsPtrMemT = 0 }; typedef T BaseT; typedef T BottomT; typedef CompoundT<void> ClassT; }; template<typename T, size_t N> class CompoundT <T[N]> { ...
stackexchange/codereview
I'm working in Actionscript 2, and I am trying to do something that seems to be basic. Basically, i've defined a Tween object within a function, and i want to control that tween from another function. What's the best way of doing this? This is the basic way i have the code set up currently: // Define the function with...
stackexchange/codereview
e.g. 01.10.2010 is friday => 27.09.2010 is monday. I have no idea how to manage this one. btw: how can I calculate with dates?
stackexchange/codereview
I have the following two annotated classes that I use to build a graph: @Entity @Table(name = "Edge") public class Edge { /* some code omitted for brevity */ @ManyToOne @JoinColumn(name = "ixNodeFrom", nullable = false) private Node _nodFrom; @ManyToOne @JoinColumn(name = "ixNodeTo", n...
stackexchange/codereview
So I want a list of all javascript commands what can manipulate or get information about URL's. Example: window.location.href
stackexchange/codereview
Are there gdb (or similar) for F#? What tools/programs do F# programmers normally use for tracing F# code in Mono? Does Visual Studio 2010 provides some integrated debugging tools for F#?
stackexchange/codereview
In Apple's Provisioning Portal "How To" under Certificates, there is a section called "Saving your Private Key and Transferring to other Systems". Now this is what I'm doing (I have rebuilt my machine with a new HDD and therefore have access to my previous OS build) and I'm looking to backup my private key so I can ins...
stackexchange/codereview
I've inherited some legacy code, within which if I turn on: error_reporting(E_ALL); I get literally hundreds of messages all over our site, all of them like: Warning: include_once() [function.include]: Failed opening '../inc/variables.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/xyz/xyz/x...
stackexchange/codereview
So suppose I have the Person and Child models: class Person < ActiveRecord::Base has_many :children accepts_nested_attributes_for :children end class Child < ActiveRecord::Base belongs_to :parent, :class_name => "Person" validates_presence_of :name end Now when I use a nested form and save a Person wi...
stackexchange/codereview
Inside a function, $1 ... $n are the parameters passed to that function. Outside a function $1 ... $n are the parameters passed to the script. Can I somehow access the parameters passed to the script inside a function?
stackexchange/codereview
hopefully someone has an answer - I am searching now for hours. I want to get the position of an movie. I tried it with MPMoviePlayerController, but this class doesn't support the MPMediaPlayback property called "currentPlaybackTime". (the funny thing is, that the MP Music PlayerController has this property) Therefore ...
stackexchange/codereview
in the below div width is 675. width:675px is working currect in inetrnet explore 8&9 buy in firefox and google chrmo display width 2px extra.. why like this. How to fix 675 in firefox and google chrmo ? <div style="width: 675px; height: 50px;border: 1px solid red" > </div>
stackexchange/codereview
I have designed quite a long flash movie, it's for an advert. The movie was designed in several flash files, each has been combined into a single movie clip and then all the movie clips have been moved into the master document. Each movie clip is on a single slide. They play through and when a clip reached the end I ...
stackexchange/codereview
I have a problem when trying to convert a dictionary to list. Example if I have a dictionary with template string as key and string as value. Then I wish to convert the dictionary key to list collection as a string. Dictionary<string, string> dicNumber = new Dictionary<string, string>(); List<string> listNumber = new L...
stackexchange/codereview
For Example : use Getopt::Long; %file ; GetOptions('file=s%' => sub { push(@{$file{$_[1]}}, $_[2]) }); use Data::Dumper ; print Dumper %file ; print @{$file{filename}} ; my @file_array = @{$file_ref}; print "==\n @file_array == "; I can execute and it working : perl multipls.pl --file filename=a.txt --file ...
stackexchange/codereview
I can't figure this one out: I have a function, e.g. function test () { this.rating = 0; $j('#star_rating a').click(function() { alert(this.rating); }); } var foo = new test(); On click it alerts "undefined". What is wrong? Please help.
stackexchange/codereview
I have an FAQ and would like to attach an image to the right of the question that tells the person to close if open and open if closed. This is what I have: $('.header-person').click(function() { $(this).next('.entry').slideToggle("fast") return false; }); I currently have the two images next to the question l...
stackexchange/codereview
I'm trying to read from file "A" one line at a time, make changes to that line, and write it back out to file "B". Appending File "B" as I go. I've found plenty of info on the web but none of it matches what I'm looking for. Any ideas on how to implement this?
stackexchange/codereview
Question is following: I have an oracle trigger after row insert. From trigger, I want to call a php script and pass just inserted row fields as parameters. Insert is coming from very old legacy application with a very little chance of looking at the source code. Rows are inserted frequently, could be batches of ~1000 ...
stackexchange/codereview
I have a WPF usercontrol which contains a number of textboxes and buttons. Currently these textboxes and buttons are all created and loaded dynamically into an ItemsControl through the code behind, whenever an instance of the control is created. The only hard-coded XAML is the declaration of the ItemsControl. This can ...
stackexchange/codereview
I have code that uses MoQ to create a partial stub. I'd prefer to interact with the interface instead of the concrete implementation so that I won't have to modify the unit test if I have a different implementation of the interface. So for example, I have a factory method such as: private Mock<ISomeInterface> ISomeInt...
stackexchange/codereview
I have a viewBased project and have two view "A" and "B" and put a button on view A and want to show view B when user push button.how can i show view B with navigation controler(means show with push) I use below code but don't know what should i do before this code(means how to setup UINavigation controler,...) [self.n...
stackexchange/codereview
We have a fairly large database (in SQL Server 2008) with many tables. We have just bought Red Gate's SQL Doc for documentation purposes. We would like to document this database in a detailed way. What is the best practice in documenting a database? How do you document your attributes with definitions? SQL Doc document...
stackexchange/codereview
Which of these languages is better for opengl game with primary platform linux? I would like if you compared them in performance and libraries support.
stackexchange/codereview
Having tried many javascript RTEs, I always seem to run into one or more showstopper issues. I was wondering if there were techniques other than the HTML designMode to build an RTE and work around these in a clean manner.. Maybe in Flash, or as a Java Applet or something? PS: Things that are usually problematic in jav...
stackexchange/codereview
I'm trying so send push notifications ton my iPhone (APNS). I read this post and try to implement it. So all my certificates are good (normaly). Now I have this php script : $device = '4f30e047 c8c05db9 3fa87e7d ca5325f7 738cb2c0 0b4a02d4 d4329a42 a7128173'; // My iphone deviceToken $payload['aps'] = array('alert' => '...
stackexchange/codereview
Is it possible to do a find and replace to the attributes of a xml element? I want to change the directory that is being pointed to by a href: From: <image href="./views/screenshots/page1.png"> to <image href="screenshots/page1.png"> And from: <image href="./screenshots/page2.png"> to <image href="screenshots/...
stackexchange/codereview
Im displaying contact details on a screen. I need to display phone call window to appear when user clicks on phone number in the contact details. Please let me know How i can do this Thanks in advance
stackexchange/codereview
I have a menu view (Menu.xib) that has several options. One of the options is 'Games' which when touched goes to a list of games (GamesList.xib). On this view there is an '+' button to add a new game (AddGame.xib). What I would like to do is from the menu, click Add Game option which will load GamesList and then AddGam...
stackexchange/codereview
I am debugging a process with multiple threads in GDB. I compiled the sole source file with the -g flag. However, while running in GDB, the following scenario occurs: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7fe2b70 (LWP 2604)] 0x00000011 in ?? () Prior to the switch, the particula...
stackexchange/codereview
I have a table with fixed width columns: <table width="100%" cellpadding="0" cellspacing="0"> <thead> <tr> <th>Title</th> <th>Description</th> <th>Hours</th> <th>Rate</th> </tr> </thead> <tbody> <tr> <td style="width:100px">...
stackexchange/codereview
How do you sort a multidimensional array by primary and secondary key? For example, assuming the following array: $result = array(); $result[0]["prio"] = 1; $result[0]["date"] = '2010-02-28'; $result[0]["post"] = "February's thoughts"; $result[1]["prio"] = 0; $result[1]["date"] = '2010-04-20'; $result[1]["post"] = "A...
stackexchange/codereview
static private ArrayList seriesColors = new ArrayList(); public Audiogram(int widthParm, int heightParm) throws Exception { super(widthParm, heightParm); seriesColors.add(new Color( 0, 0, 255)); // Set the default settings to an industrial audiogram setT...
stackexchange/codereview
I have this function inside another function: def _sum(k): return sum([(-1) ** v * fractions.Fraction(str(bin_coeff(k, v))) * fractions.Fraction((n + v) ** m, k + 1) for v in xrange(k + 1)]) When i call fractions.Fraction on bin_coeff it reports me this error: ValueError: Invalid literal for Fraction: '1.05204...
stackexchange/codereview
I have two applications. In one application the web browser control shows a flash movie that is embedded and in the other it does not, only shows place holder. I have identical code in both constructors to load a web control dynamically and then navigate to the requested web page. I run both application in debug mode...
stackexchange/codereview
I'm using VC 2010 and trying to keep the overhead and duplicated code of certain functions low, by placing the random definitions in the constructor of each class instance, then calling as necessary from there. What I have now, simplified, is: #include <random> #include <Windows.h> mt19937 eng(GetTickCount()); class C...
stackexchange/codereview
I hope you can help with that. OK i have created new group/folder under Classes - Libs: Classes/Libs and have created class there Msg.h now I am trying to import it into my RootViewController #import "Libs/Msg.h" but I am getting an error: Libs/Msg.h = no such file or directory what should i Do ? cheers, /marcin...
stackexchange/codereview
My screen looks good in IE8 under Windows XP. But when I open it in IE8 under Windows Server 2003, all text is more bold than in XP. I can apply styles to it, for example change font-weight in css, but in that case font weight changes under Windows XP too and in any case my screen looks differ.
stackexchange/codereview
It's commonly understood that in the relational model: Every relational operation should yield a relation. Relations, being sets, cannot contain duplicate rows. Imagine a 'USERS' relation that contains the following data. ID FIRST_NAME LAST_NAME 1 Mark Stone 2 Jane Stone 3 Michael Stone If someone ...
stackexchange/codereview
I'm wondering if there is a way to get a handle on the DOM element that contains the script inside it. So if I had: <script type="text/javascript> var x = ?; </script> Is there a way that I can assign "x" a reference to the script element that contains "x"?
stackexchange/codereview
all , iam developing an ipad app that uses mapview to display google maps, my problem was how to get lat long of a perticular region, some how i manged to get by putting an overlay on the map view and getting point of that view , then converted to lat long. now my problem is i want to show an movable pointpin on the vi...
stackexchange/codereview
As the title suggest I'm having a problem with the first query against a SQL Server database using Entity Framework. I have tried looking for an answer on different sites but no one seems to actually have a solution to this. I'm loading quite a lot of rows from the database including two 0-many relationships. The tests...
stackexchange/codereview
I want to record two voices and compare them. I think there is some Apple sample code for voice recording. I have no idea about comparing two audio files. What is the right approach for this? Is there any framework Apple provides for this purpose or is there any third party framework?
stackexchange/codereview
The default text in my search box looks fine in Chrome, FF, and Safari (vertical-align: middle). However, the default text rises to the top of the search box in IE 8. Is there a workaround for IE? Thanks for your help. HTML: <input type="text" class="text" value="Search" title="Search" /> CSS: .text { height: 47px...
stackexchange/codereview
I would need to parse this: <?xml version="1.0" encoding="utf-8"?> <blamatrixrix> <name></name> <columns number="2"> <column id="title" num="0">Title</column> <column id="content" num="1">Content</column> </columns> <rows number="7"></rows> <b>Description</c> <bDescription text here</b> <b>Some title 1</b> <b>Some te...
stackexchange/codereview
I know that using the Insert menu, you can create a matrix with vertical and horizontal lines, but not a more generic partition, such as dividing a 4x4 matrix into 4 2x2 partitions. Nor, can MatrixForm do any sort of partitioning. So, how would I go about programmatically displaying such a partitioned matrix? I woul...
stackexchange/codereview
class line { public: line(int Width) : width(Width) { } private: int width; }; I could name Width something like wantedWidth, but I'm just wondering, is there a convention for this or a better way? I don't want to use Hungarian notation.
stackexchange/codereview
I have a gif file with many icons and buttons on it.. What I want to do is include that gif file using php gd somefunction("file.gif") then, resize the new image to 30px by 30px.. and then be able to position (using x and y coordinates) the actual gif file, so that only a certain area of the image shows on the new file...
stackexchange/codereview
I have two threads: Thread:1 a = 1; x = b; Thread:2 b = 1 y = a Here a and b are declared volatile. I did not understand how a "happens-before" edge is created between a = 1; and y = a; and between x = b; and b = 1; I understand that by using volatile variable one can prevent reading stale values from thread cache. B...
stackexchange/codereview
I have a table with fixed height in which one row has fixed height and another gets height left and I need to get scrollbar in the flexible row when its inner content is high. Is it possible to do? <table style="width: 50%; height: 300px; overflow:auto"> <tr> <td style="height: 50px;background:grey"></td> </tr>...
stackexchange/codereview
I am wondering if anyone knows of an open source c# library for beautifying javascript. I would like to make use of such a library within my asp net website to make debugging messy javascript easier. There are currently many online websites for this (ie. http://jsbeautifier.org/) however I would like to have access to ...
stackexchange/codereview
I am attempting to set up aliases for my Cygwin bash shells, to run programs contained in the standard Windows C:\Program Files subdirectories. Unfortunately, the alias command really doesn't like spaces in a directory name, and nothing I've tried seems to work. I'm trying to get the following running: alias npp='/cy...
stackexchange/codereview
i have an unusual javascript problem, i have a javascript problem that alternately refuses to work. Basically, on the first click, the jquery function works as it should, deleting the table row, and redrawing the table rows: $(".deleteRow").click(function(e){ if(confirm("This will delete the selected we...
stackexchange/codereview
The default weight of 1px for line-through property in CSS is great for body copy at 1em. Unfortunately for larger items such as a price set at 3em on an offer site, 1px is really too light. Is it possible to set a heavier line weight for line-through? If not, what alternatives should I consider, such as an image overl...
stackexchange/codereview
I'm trying to create a regular expression for a user name. Here are the rules 1) At least 8 characters and at most 50 characters 2) Allows A-Z, a-z, numbers, and any other character except / character. Thank you, -Tesh
stackexchange/codereview
I' using the jquery loading plugin : http://plugins.jquery.com/project/loading To display a "please wait..." message fixed at the top of the browser page when an ajax request is being processed. This message is fixed at the top (like the messages at the top of the stackoverflow site), so are there even if the window i...
stackexchange/codereview
I have been assigned a work to validate a XML against an XSD and if everything passed will parse the XML so that can import the same in to my system. My Question is that what is the best way to validate an XML against the XSD and which is the best API for parsing the XML in to my domain object. Looking for valuable sug...
stackexchange/codereview
I have a SSIS package that imports data from an excel file. One of the columns has mostly numbers (like 12345) but some also have letters (like 123A5) When i configure the package i can't change the format and it's always recognized as double (probably it only looks at the first lines) . How can i enforce my own data t...
stackexchange/codereview
$('#XynBp0').find('input').each(function(){ if ($(this).attr('value') == 'Cancel'){ $(this).trigger('click'); } }); doesn't work in IE7
stackexchange/codereview
I am implementing a magento shopping cart for the purpose of selling course material and online/offline tests. Their is a couple of different ways to purchase the course material. Book Only Online Test Only Book & Online Test Paper Test Only Book & Paper Test Each of the above are represented with their own sku's a...
stackexchange/codereview
So with Microsoft .NET, you get the advantage of language interoperability. But I've heard that this is slower than native applications. What if you only need one language? Then what are the advantages. I am a C and C++ programmer, and .net seems to be heavily tied with C#. Is this the case? And is dot net portable, or...
stackexchange/codereview
I have a Tomcat 6 webserver running my application and I am seeing some very strange redirect behaviour. I expect to access my application at the internal URL http://appteam.testdomain.co.uk/test and that this will return a 302 redirect to http://appteam.testdomain.co.uk/test/ which then serves up index.html, the front...
stackexchange/codereview
This is slightly modified version of the code in the PHP docs: http://php.net/manual/en/function.next.php <?php $array = array( -1 => true, 0 => false, 1 => true ); while ($bet = current($array)) { if ($bet == true) { echo key($array) . '<br />'; } next($array); } ?> This is as close ...
stackexchange/codereview
BALL ball1;//,ball2,ball3; ball1.bx = 0; ball1.by = 0; ball1.bvx = 1.0; ball1.bvy = 1.0; ball1.radius = 5.0; BALL is a struct in a separate.h file where I have used the following code : typedef struct ball { GLfloat bx; GLfloat by; GLfloat bvx; GLfloat bvy; GLfloat radius; }BALL; typedef struct paddle { GLfloa...
stackexchange/codereview
I have an asp.net 4.0 Formview bound to a SqlDataSource, hosted on IIS7, and I'm displaying a date for editing like this: <input id="OrderDateTextBox" type="text" value='<%# Eval("OrderDate", "{0:d}") %>' /> This generally works as expected, but occasionally the date format displays d/m/y instead of m/d/y. When this ...
stackexchange/codereview
I'm thinking of designing my own Test library (framework) ->in c++ I am wondering if some of you have already designed there own (and what good advices, documentation they could offer me), decided to not do that (and why), What critics (and argue) you have against differents existing testing frameworks. I want to no mo...
stackexchange/codereview
Can someone please list the steps needed to get a project setup for the AppStore. Lets assume the following I do not have any certificates, provisioning profiles, distribution profiles, app id (whatever they are), etc. I have an iPhone and an iPad In addition, please specify 1. what I would need to do if I created a...
stackexchange/codereview
Once again.. i have the trigger below which has the function to keep/set the value in column esb for maximum 1 row to value 0 (in each row the value cycles from Q->0->R->1) When i insert more than 1 row the trigger fails with an "Subquery returned more than 1 value. This is not permitted when the subquery follows" erro...
stackexchange/codereview
Performing user authentication in Java EE / JSF using j_security_check I tried this solution. But if i put this to my config <login-config> <auth-method>FORM</auth-method> <realm-name>sql</realm-name> <form-login-config> <form-login-page>/login.xhtml</form-login-page> <form-error-page>/index...
stackexchange/codereview
I have a project that I am trying to fix from a guy that left (let go) from my company. He has violated every fundamental principle of software engineering, not using source control, not backing up the source before you make more changes, etc. etc. I need to make changes to an application that is in the field and I do...
stackexchange/codereview
I have the arrangement below. My question is, why won't the first div tag align to the top of the cell, instead it moves down to the top of the image (both ie and firefox etc.)? Absolute positioning will not work as it appears that the div will not recognize the td cell as its parent and instead moves to the top of t...
stackexchange/codereview
I am trying to model the following 2 sentences in an ER Diagram: Each company has a set of tanks. It is also known for each tank how filled up it is for each time of day. It is not known if there are specific times of day for which there are logs. It can be once a day, twice, each hour, maybe some days you don't ...
stackexchange/codereview
I have an XML file which should be a part of a table in my SQL database (say, name, data and XML). I prefer not to make a string of it if possible. What column type should I use for it? I chose XML but I'm not sure how to work with it. A small code example would be very appreciated. Thanks.
stackexchange/codereview
I can see this video through VLC: http://webtv.camera.it/cartelloaula.asx But I want to see it through Flash. Is it possible? If yes, how?
stackexchange/codereview
I'm working with Google Maps v3 and I use the MarkerManager to hide the markers on a certain zoom level. I bind circle objects to these markers. Anyway, they aren't hided when the markers are. How can I bind the circles to hide with the markers? The binding: var marker = new google.maps.Marker({ position: new google....
stackexchange/codereview
currently the stored proc returns one record based on a employee_number that is passed as a parameter. If the surpervisor_id is NULL, there is no record returned. If I want to return a record with all the other fields, and have a NULL in the supervisor_id field, how would I configure that? SELECT DISTINCT tblPeo...
stackexchange/codereview
is it possible to remove Main Domain cookie from Sub Domain ?I am using single sign on .On logout i want to remove the maindomain cookie
stackexchange/codereview
I am trying to find a Clojure-idiomatic way to "compress" a vector: (shift-nils-left [:a :b :c :a nil :d nil]) ;=> (true [nil nil :a :b :c :a :d]) (shift-nils-left [nil :a]) ;=> (false [nil :a]) (shift-nils-left [:a nil]) ;=> (true [nil :a]) (shift-nils-left [:a :b]) ;=> (false [:a :b]) In other words, I want to move ...
stackexchange/codereview
Is there any API for drawing financial chart in android?
stackexchange/codereview
How can I convert std::string to LPCSTR while preserving '\0' characters? I want to use the result on OPENFILENAME.lpstrFilter which requires the filter to contain '\0' as delimiters. std::string.c_str() seems to strip and trim '\0' Thanks in advance! ========================== (How do I properly add a comment to the ...
stackexchange/codereview
Possible Duplicate: An Ideal Keyboard Layout for Programming As a programmer I don't type as much human language as normal users. In fact, a lot of what I type are ASCII special characters such as $();:?=+-'"\[]{}<>. Needless to say, QWERTY is not good at programming. function decode($t) { return preg_replace('/...
stackexchange/codereview
I have a large sql file < 600 MB. This files is backup for forum and I want to upload it to empty db. How I can upload it?? I can't use PHPMyAdmin? and I used BigDump and it doesn't insert all tables. How to do it?? Is there any other way? Thanks EDIT : I don't have access to command line, I just have my CPanel
stackexchange/codereview
I was looking into Microsoft XAudio2 XAPO and I guess it is only for audio streams that are sent through XAudio2, or can it be applied as a system-wide audio filter?
stackexchange/codereview
I have two entities: Master and Details. When I query them, the resulting query to database is: SELECT [Extent2]."needed columns listed here", [Extent1]."needed columns listed here" FROM (SELECT * [Details]."all columns listed here"... FROM [dbo].[Details] AS [Details]) AS [Extent1] LEFT OUTER JOIN [dbo].[Master] ...
stackexchange/codereview
i have one table store post id and it's tags like : Post_id | Tags -------------------------------------- 1 | keyword1,keyword2,keyword3 I want to loop though each row at this table and do : put the keyword1,keyword2,keyword3 in new table : word_id | word_value ------------------------- 1 | key...
stackexchange/codereview
I know that if I do something like copyFromInToOut(new FileInputStream(f1), new FileOutputStream(f2)); System.gc(); It will run the GC on those FileInputStreams, closing them. But if I do copyFromInToOut(new BufferedInputStream(new FileInputStream(f1)), new BufferedOutputStream(new FileOutputStream(f2)); System.gc()...
stackexchange/codereview
int main () { int * b; b = (int*) malloc (1); *b=110000; free (b); return 0; } Why does heap corruption happen at free (b);? IMO, heap corruption already happens at *b=110000;.
stackexchange/codereview
After Twitter discontinuing the Basic Auth, my program which updates my own Twitter stream (not others' Twitter streams.) has broken. I understand that OAuth is the way to go. I have set up a Twitter App for the same and have acquired the consumer tokens. Now I don't want to implement the OAuth for Twitter all by mysel...
stackexchange/codereview
I'd like to know where the installation path for an application is. I know it usually is in ...\Program Files... but I guess some people install it in different locations. I do know the name of the application. Thank you.
stackexchange/codereview
Does Sql Server management studio have no nice support for multi-monitor setups? The only way I can see to use it multi-monitor is to stretch the main window across both monitors, but this isn't really practical, as my two main monitors are different sizes and resolutions (external monitor on a laptop). I was hoping ...
stackexchange/codereview
I use the Ant API for creating tasks programmatically, but I have not yet found the class that create JUnit report task. in short, I want the equivalent of the code below using the Ant API: <junitreport todir=".."> <fileset dir=".."> <include name="TEST-*.xml" /> </fileset> <report format="frames" todir...
stackexchange/codereview
In C/C++, I have a bunch of functions that I call from main(), and I want to rewrite this in C#. Can I have stand alone functions(methods) or do I have to put them in another class? I know I can have methods within the same class, but I want to have a file for each function/method. Like this works: using System.IO; us...
stackexchange/codereview
I am working through SICP, and the problem 2.6 has put me in something of a quandary. In dealing with Church numerals, the concept of encoding zero and 1 to be arbitrary functions that satisfy certain axioms seems to make sense. Additionally, deriving the direct formulation of individual numbers using the definition of...
stackexchange/codereview
I need to get the content (statements) of a stored procedure on databaseA and in serverA, I am using SQL Server
stackexchange/codereview
WE developed system integrated with crystal Reports, with Crystal Report viewer on page. but the problem is we hosted it on 32 bit server but when access it and try to print the report it gives the error and does show any dialogue. we have installed full crystal report version with License but error is there. I tried t...
stackexchange/codereview
I need to be able to use C# and Excel interop to determine which cells are selected in a workbook/worksheet. It would be nice if there were something like this defined in Excel: Excel.Range Worksheet.GetSelectedCells();
stackexchange/codereview
Someone help in translating the following text from image, it's Chinese. alt text
stackexchange/codereview