instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
This is a winforms application.
In windows, I want the user to click and button, and then a popup should make the user select the path of where they want to save the file.
| stackexchange/codereview |
a while back I ran across a situation where we needed to display message-boxes to the user for notifications but we could not use MessageBox.Show because it blocks the GUI thread (so nothing on the screen gets updated while the dialog is active). Any suggestions on an alternative?
[I coded an alternative at the time bu... | stackexchange/codereview |
I have numerous Web Services in my project that share types.
For simplicity I will demonstrate with two Web Services.
WebService1 at http://MyServer/WebService.asmx
webService2 at http://MyServer/WebService.asmx
When I generate the proxy for these two services I use:
wsdl /sharetypes http://MyServer/WebService1.asmx h... | stackexchange/codereview |
I'm wondering if PHP has this optimization built in. Normally when you call foreach without using a reference it copies the passed array and operates on it. What happens if the reference count to that array is only 1?
Say for example if getData returns some array of data.
foreach(getData() as $data)
echo $data;
... | stackexchange/codereview |
The first one is definitely something that works, but which one below is the efficient way?
switch($type) {
case 1:
print 'success';
break;
case 2:
print 'success';
break;
case 3:
print 'success';
break;
case 4:
print 'success for type 4';
break;
}
Sin... | stackexchange/codereview |
I'm writing a python script that executes a csh script in Solaris 10. The csh script prompts the user for the root password (which I know) but I'm not sure how to make the python script answer the prompt with the password. Is this possible? Here is what I'm using to execute the csh script:
import commands
commands.get... | stackexchange/codereview |
What MySQL query will do a text search and replace in one particular field in a table?
I.e. search for foo and replace with bar so a record with a field with the value hello foo becomes hello bar.
| stackexchange/codereview |
Is it possible to get the machine name, or IP, or MAC address (basically client network information) from javascript running Internet Explorer?
I found the following code that seems to accomplish this:
function Button1_onclick() {
var locator = new ActiveXObject("WbemScripting.SWbemLocator");
var service = locator.... | stackexchange/codereview |
Lets just say you have a table in Oracle:
CREATE TABLE person (
id NUMBER PRIMARY KEY,
given_names VARCHAR2(50),
surname VARCHAR2(50)
);
with these function-based indices:
CREATE INDEX idx_person_upper_given_names ON person (UPPER(given_names));
CREATE INDEX idx_person_upper_last_name ON person (UPPER(last_name)... | stackexchange/codereview |
I know how to load themes dynamically when they are stored locally. Is it possible to store theses themes in the database yet still apply them programmatically as described in referenced MSDN article?
Also - If you do store them in the filesystem, is it possible to change the path of the App_Themes directory to a diffe... | stackexchange/codereview |
Whenever I start our Apache Felix (OSGi) based application under SUN Java ( build 1.6.0_10-rc2-b32 and other 1.6.x builds) I see the following message output on the console (usually under Ubuntu 8.4):
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
I've seen this message display occasionally when... | stackexchange/codereview |
The WebBrowser control has a property called "IsWebBrowserContextMenuEnabled" that disables all ability to right-click on a web page and see a context menu. This is very close to what I want (I don't want anyone to be able to right-click and print, hit back, hit properties, view source, etc).
The only problem is this ... | stackexchange/codereview |
I've been asked to create a fairly straightforward website for a friend. Essentially a user will log in, fill in a set of information, and submit it. This data will then need to written to a database (and read from/presented at a future point).
I'm not really a web developer (I do mostly Java/C++), but about 3 years ag... | stackexchange/codereview |
I'm using the GGeoXml object to overlay KML on an embedded Google Map. I need to customize the popup balloon for placemarks, so I'm trying to use the <BalloonStyle> element:
<?xml version="1.0" encoding="utf-8"?>
<Document xmlns="http://earth.google.com/kml/2.0">
<name>Concessions</name>
<Style id="masterPolySt... | stackexchange/codereview |
What are the minimum OS requirements for each of the .Net frameworks? E.g. for which version is it impossible to run each OS on:
Windows 95
Windows 98
Windows 98SE
Windows ME
Windows NT 3.x
Windows NT 4
Windows 2000
I believe all .Net frameworks are compatible w/ XP, Vista, Windows Server 2003, and Windows Server 20... | stackexchange/codereview |
I have this table in an Oracle DB which has a primary key defined on 3 of the data columns. I want to drop the primary key constraint to allow rows with duplicate data for those columns, and create a new column, 'id', to contain an auto-incrementing integer ID for these rows. I know how to create a sequence and trigger... | stackexchange/codereview |
I'm using the latest version of the jQuery UI tabs. I have tabs positioned toward the bottom of the page.
Every time I click a tab, the screen jumps toward the top.
How can I prevent this from happening?
Please see this example:
http://5bosses.com/examples/tabs/sample_tabs.html
| stackexchange/codereview |
I have a site with multiple document libraries in it. One of the site users has full control of the site & at one point, instead of creating a new document library, they renamed the default document library from "Shared Documents" to "Correspondence". Now they've opened the document library in windows explorer, so it... | stackexchange/codereview |
The Situation
I have an area of the screen that can be shown and hidden via JavaScript (something like "show/hide advanced search options"). Inside this area there are form elements (select, checkbox, etc). For users using assistive technology like a screen-reader (in this case JAWS), we need to link these form element... | stackexchange/codereview |
I'm trying to convert an XML file into the markup used by dokuwiki, using XSLT. This actually works to some degree, but the indentation in the XSL file is getting inserted into the results. At the moment, I have two choices: abandon this XSLT thing entirely, and find another way to convert from XML to dokuwiki markup... | stackexchange/codereview |
I'm developing a cart that needs to calculate tax and am looking for a 3rd party tax service to handle the calculations.
I've used Avalara in another app, but it's somewhat miserable since I have to use the Rjb gem with their java library.
Does anyone have a recommendation for a tax service that works well with rails... | stackexchange/codereview |
I'm working with an old Access database (yes, it's very ugly and I hate it). I need to modify some of the columns from a VB app that I'm creating. I have most the modifications setup correctly, but I'm fighting with the fact that modifying a column to text has it default to "Allow Zero Length" to false.
SO
ALTER TAB... | stackexchange/codereview |
I'd like to know which method is recommended on Windows C programming: using malloc or the Win32 HeapAlloc (maybe VirtualAlloc?) function.
I've read the MSDN Memory Management Functions article and the MSDN articles regarding malloc and HeapAlloc, but they do not say which one should be used and in what situations.
| stackexchange/codereview |
In a .net web application I talk to a 3rd party CMS api which gives back html. I need to convert it to well formed xml, so I use an .NET wrapper around HTML tidy. This generates a nice DOM, but things go wrong when characters such as are used.
I need those to be converted to their code format like   in orde... | stackexchange/codereview |
Looking through some code I came across the following code
trTuDocPackTypdBd.update(TrTuDocPackTypeDto.class.cast(packDto));
and I'd like to know if casting this way has any advantages over
trTuDocPackTypdBd.update((TrTuDocPackTypeDto)packDto);
I've asked the developer responsible and he said he used it because it w... | stackexchange/codereview |
On the site we are building. We need to be able to redirect the user to a default page when his session has ended.
At first sight we used the Session_End with a Response.Redirect to do this job.
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("~/global/exit.aspx")
End Sub
But it gen... | stackexchange/codereview |
I'm trying to work through Project Euler and I'm hitting a barrier on problem 03. I have an algorithm that works for smaller numbers, but problem 3 uses a very, very large number.
Problem 03:
The prime factors of 13195 are 5, 7, 13 and 29.
What is the largest prime factor of the number 600851475143?
Here is my solution... | stackexchange/codereview |
For example, I am trying to get a min date, a max date, and a sum in different instances. I am trying to avoid hard coding a SQL string or looping through an IList to get these values.
| stackexchange/codereview |
Is it possible to reload a page that was loaded thru link_to_remote? I'm doing this in my controller:
def create
if captchas_verified
do_something
else
render :action=>'new'
end
But when the captchas is wrong, it do not render a form that is inside of the new template. By the way, in the webserver log, it shows... | stackexchange/codereview |
I am attempting to deploy .NET 2.0 web services on IIS that has both 1.0 and 2.0 installed. This web server primarily serves a large .NET 1.0 application.
I have copied by .NET 2.0 web service project to the server and have created a virtual directory to point to the necessary folder.
When I set the ASP.NET version t... | stackexchange/codereview |
How to validate iscontrolkeys in textbox keydown event in .net?
| stackexchange/codereview |
I'm working on a small app where I can generate a list of barcodes. I have the correct fonts installed on my computer. Right now I am printing them directly to a webpage and it works properly in Chrome and IE 7, but not Firefox. Does anyone know what Firefox would be doing differently than IE and Chrome?
Here is my cod... | stackexchange/codereview |
I have a set of templates for emails that my app sends out. The templates have codes embedded in them that correspond to properties of my business object.
Is there a more elegant way than calling
string.Replace("{!MyProperty!}", item.MyProperty.ToString())
a zillion times? Maybe XMLTransform, regular expressions, o... | stackexchange/codereview |
I have a scenario where I would like to animate a WPF control right before it is removed from the visual/logical trees. The control is custom, and the control style, including animations would be supplied by a designer (i.e. I don't know the details of what they will be at the time of writing the control code). I wou... | stackexchange/codereview |
I've been developing a simple website using asp.net MVC and I'm starting to add some JQuery\JSON goodness.
My problem is up until now all my 'Views' have been strongly typed and I've been building the view based on data from ViewData.Model.MyViewsData. Now once the view has been rendered and I do a Ajax style reques... | stackexchange/codereview |
Is there a way to get the Unicode Block of a character in python? The unicodedata module doesn't seem to have what I need, and I couldn't find an external library for it.
Basically, I need the same functionality as Character.UnicodeBlock.of() in java.
| stackexchange/codereview |
Is there a library method to copy all the properties between two (already present) instances of the same class, in Python?
I mean, something like Apache Commons' PropertyUtilsBean.copyProperties()
| stackexchange/codereview |
I am attempting to deploy an ASP.NET 2.0 Web service application on an IIS server that currently serves a large .NET 1.0 web application.
I have set up an appropriate virtual directory and have set the ASP.NET version for the virtual directory to 2.0, when I attempt to browse the site in a web-browser, I am prompted f... | stackexchange/codereview |
How would you go about creating a random alpha-numeric string that matches a certain regular expression?
This is specifically for creating initial passwords that fulfill regular password requirements.
| stackexchange/codereview |
Is there a case insensitive version of the :contains jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?
| stackexchange/codereview |
Besides the unit testing benefits, what I heard regarding MVP pattern was that the reusability of the presentation layer. So, you would design one presentation layer and use it for WinForms (rich) and Web.
I am currently working on a windows forms application in .NET with possibility of creating a web UI in the future... | stackexchange/codereview |
How do I broadcast a message from a single source to all nodes, and from multiple sources to all nodes?
Are there any libraries in java that may help?
| stackexchange/codereview |
I was wondering if there was a good way to monitor a document library on SharePoint for changes (new files added, files changed / checked-in, files deleted, etc.)
Basically, what System.IO.FileSystemWatcher does on local / network directories.
Are there events that get fired when documents are uploaded to document libr... | stackexchange/codereview |
How do I extend my parent's options array for child classes in PHP?
I have something like this:
class ParentClass {
public $options = array(
'option1'=>'setting1'
);
//The rest of the functions would follow
}
I would like to append to that options array in a child class without erasing any o... | stackexchange/codereview |
I have this situation.
I have a real stored in a varbinary field in a sql 2005 database.
As I can't convert a varbinary to a real in sql 2005, I'm trying to do that in vb.net.
That field gets stored as a byte() array in a DataTable.
Now I would like to read that byte() into a double, or decimal variable.
But I don't ha... | stackexchange/codereview |
I'm on vista, with VS2005 running as admin. Both vs2005 and vs2008 are installed. If I explicitly use the path to gacutil, it works, but not if I only call gacutil like this:
if NOT $(ConfigurationName) == Release gacutil /f /i "$(TargetPath)"
I would just update the post-build script, but I've been asked to lea... | stackexchange/codereview |
I see that the SML/NJ includes a queue structure. I can't figure out how to use it. How do I use the additional libraries provided by SML/NJ?
| stackexchange/codereview |
Did Microsoft abandon support for Windows Presentation Foundation (WPF) on Visual Studio 2005?
There was the a Community Technology Preview (CTP) for the WPF and WCF, but it's no longer available for download. There are released extensions for Windows Workflow Foundation (WF) for Visual Studio 2005.
But as far as i can... | stackexchange/codereview |
I'm trying to unit test a piece of code that needs a currently logged in user in the test. Using the .Net 2.0 Membership Provider, how can I programmatically log in as a user for this test?
| stackexchange/codereview |
I am attempting to deploy an ASP.NET 2.0 Web service application on an IIS server that currently serves a large .NET 1.0 web application.
I have set up an appropriate virtual directory and have set the ASP.NET version for the virtual directory to 2.0, when I attempt to browse the site in a web-browser, I am prompted f... | stackexchange/codereview |
I have an img tag in my webapp that uses the onload handler to resize the image:
<img onLoad="SizeImage(this);" src="foo" >
This works fine in Firefox 3, but fails in IE7 because the image object being passed to the SizeImage() function has a width and height of 0 for some reason -- maybe IE calls the function before ... | stackexchange/codereview |
On my reading spree, I stumbled upon something called Intentional Programming.
I understood it somewhat, but I not fully. If anyone can explain it in better detail, please do. Is it being used in any real application?
| stackexchange/codereview |
Hey there, I'm looking into using Mate, but the projects I work on do not require the majority of the functionality of the Flex framework. My workmate said that he heard of an Actionscript version, but I can find no information on the main site about this, only that they have removed some dependencies on the Flex frame... | stackexchange/codereview |
I maintain an application that uses the win32 EnumPorts() function to help determine the set of serial ports installed on the computer. I have seen cases on some computers where the call to get this information fails with a GetLastError() code of 1722 (RPC server is unavailable). I assume that this has something to d... | stackexchange/codereview |
I am currently writing a little bootstrap code for a service that can be run in the console. It essentially boils down to calling the OnStart() method instead of using the ServiceBase to start and stop the service (because it doesn't run the application if it isn't installed as a service and makes debugging a nightmare... | stackexchange/codereview |
I'm working on a project where I have 2 web services that need the same entity. The 2 web services are on the same server so on the back-end, they share the same classes.
On the front-end side, my code consumes both web services and sees the entities from both services as separate (in different namespaces) so I can't ... | stackexchange/codereview |
I want to create a list of integers from 1 to n. I can do this in Python using range(1, n+1), and in Haskell using: take n (iterate (1+) 1).
What is the right OCaml idiom for this?
| stackexchange/codereview |
I have two iterators, a list and an itertools.count object (i.e. an infinite value generator). I would like to merge these two into a resulting iterator that will alternate yield values between the two:
>>> import itertools
>>> c = itertools.count(1)
>>> items = ['foo', 'bar']
>>> merged = imerge(items, c) # the mythi... | stackexchange/codereview |
We recently had a problem where, after a series of commits had occurred, a backend process failed to run. Now, we were good little boys and girls and ran rake test after every check-in but, due to some oddities in Rails' library loading, it only occurred when we ran it directly from Mongrel in production mode.
I tracke... | stackexchange/codereview |
What's the most elegant templating (preferably in pure PHP!) solution you've seen?
Specifically i'm interested in handling:
Detecting in a repeating block whether it's the first or last element
Easy handling of odd/even cases, like a zebra striped table, or similar
Other modulos logic, where you'd do something every n... | stackexchange/codereview |
A co worker of mine asked me to review some of my code and he sent me a diff file. I'm not new to diffs or version control in general but the diff file was very difficult to read because of the changes he made. Specifically, he used the "extract method" feature and reordered some methods. Conceptually, very easy to ... | stackexchange/codereview |
I'm involved in building a donation form for non-profits. We recently got hit by a fast round of low dollar submissions. Many were invalid cards, but a few went through. Obviously someone wrote a script to check a bunch of card numbers for validity, possibly so they can sell them later.
Any ideas on how to prevent or l... | stackexchange/codereview |
Suppose we have the following code:
ExpressionHelper.GetRouteValuesFromExpression<AccountController>(ax => ax.MyAction("a", "b"));
(from ASP.NET MVC Futures assembly). Method is reasonably fast - it executes 10k iterations in 150ms.
Now, we change code to this:
string a = "a";
string b = "b";
ExpressionHelper.GetRoute... | stackexchange/codereview |
Converting a couple stored procedures from MySQL to Microsoft SQL server. Everything is going well, except one procedure used the MySQL SHA1() function. I cannot seem to find an equivalent to this in MS-SQL.
Does anyone know a valid equivalent for SHA1() on MS-SQL?
| stackexchange/codereview |
Currently, if I want to apply a method to a group of ActiveRecord objects, I have to structure the call like so:
messages = Message.find(:all)
csv = Message.to_csv(messages)
How can I define the method so it's structured like so?
messages = Message.find(:all)
csv = messages.to_csv
This is the current model code:
requ... | stackexchange/codereview |
I heard somewhere that you can drop down to C++ directly inside C# code.
How is this done? Or did I hear wrong?
Note: I do not mean C++ / CLI.
| stackexchange/codereview |
I'm sure this is going to be a long shot, but I need help with a query involving QuickBooks Items.
I need to query for all QuickBooks Items that are linked to an Income account. Is there an easy way to do this, or do I need to make 2 queries (one for items ans one for accounts) and then check the account reference?
alb... | stackexchange/codereview |
How can we make a web-src for Access Manager customizations and a par-src for portal server customizations?Are there concrete steps to do this?
Thanks & Regards,
Vivek
| stackexchange/codereview |
I have a filter attribute that I'd like to be applied to every action on my controller. Is there a built in mechanism to support this? Right now, I'm manually adding the filter to each action, but that's error prone and tedious. If there isn't support for controller level filter attributes, is there a better way to ... | stackexchange/codereview |
I was wondering how other developers begin refactoring. What is your first step? How this process (refactoring) differ if you refactor code which is not yours? Do you write tests while refactoring?
| stackexchange/codereview |
In the spirit of questions like Do your loops test at the top or bottom?:
Which style do you use for an infinite loop, and why?
while (true) { }
do { } while (true);
for (;;) { }
label: ... goto label;
| stackexchange/codereview |
Besides the CODEX what resources do you recommend to help a person new to creating plugins help create a WordPress plugin. I have an idea, but need a bit better explanation than what is in the CODEX to get started.
UPDATE: Is there a book that I could buy to help me out with this?
| stackexchange/codereview |
Edit: This was accidentally posted twice. Original: VB.NET Importing Classes
I've seen some code where a Class is imported, instead of a namespace, making all the static members/methods of that class available. Is this a feature of VB? Or do other languages do this as well?
TestClass.vb
public class TestClass
pub... | stackexchange/codereview |
I was helping out some colleagues of mine with an SQL problem. Mainly they wanted to move all the rows from table A to table B (both tables having the same columns (names and types)). Although this was done in Oracle 11g I don't think it really matters.
Their initial naive implementation was something like
BEGIN
INS... | stackexchange/codereview |
I was put in a position today in which I needed to enumerate all possible combinations of jagged list. For instance, a naive approach would be:
for a in [1,2,3]:
for b in [4,5,6,7,8,9]:
for c in [1,2]:
yield (a,b,c)
This is functional, but not general in terms of the number of lists that can be... | stackexchange/codereview |
Using Java mail, I would like to send an e-mail and check the status. Possible statuses include:
Hard-bounce: No mail server found
Soft-bounce: Mail server found, but account not found
Success
Is it even possible to send an e-mail and get some feedback about the delivery attempt in the manner I've described above?
ED... | stackexchange/codereview |
I'm trying to build a new .NET C++ project from scratch. I am planning to mix managed and unmanaged code in this project.
this forum thread
IDataObject : ambiguous symbol error answers a problem I've seen multiple times.
Post #4 states
"Move all 'using namespace XXXX' from .h to .cpp"
this looks like a good idea but no... | stackexchange/codereview |
I'm way buried in many nested levels of css, and I can't tell which style layer/level is messing up my display. How can I find out everything that's being applied to a particular element?
| stackexchange/codereview |
I am attempting to deploy an ASP.NET 2.0 Web service application on an IIS server that currently serves a large .NET 1.0 web application.
I have set up an appropriate virtual directory and have set the ASP.NET version for the virtual directory to 2.0, when I attempt to browse the site in a web-browser, I am prompted f... | stackexchange/codereview |
I'm using window.onback = history.forward(); to prevent users from resubmitting data. I know it's a hack and I don't like it either, but that's not what this question is about. The problem is that the code prevents other pages from going back to the page with the code. Let me clarify.
PageA.aspx has the JavaScript code... | stackexchange/codereview |
We use ASP.NET, C#
When making an update to one of our websites, we roll out the entire site rather than updating just the pages or sections that have changed. This scares me.
Is this a good idea? Should I roll out only the changes?
Should I break my site into smaller projects?
What is best practice?
| stackexchange/codereview |
Does the placement of a function have an effect on the performance of closures within scope? If so, where is the optimal place to put these functions? If not, is the implied association by closure enough reason to place a function in another place logically?
For instance, if foo does not rely on the value of localSta... | stackexchange/codereview |
Does anyone know of such a library that performs mathematical optimization (linear programming, convex optimization, or more general types of problems)? I'm looking for something like MATLAB, but with the ability to handle larger problems. Do I have to write my own implementations, or buy one of those commercial produc... | stackexchange/codereview |
struct a
{
char *c;
char b;
};
What is sizeof(a)?
| stackexchange/codereview |
I have a variable that is built in loop. Something like:
$str = "";
for($i = 0; $i < 10; $i++) $str .= "something";
If $str = "" is ommitted, I get undefined variable notice, but I thought php auto-declare a variable the first time it sees undeclared one?
How do I do this right?
| stackexchange/codereview |
The situation
When you study social sciences, you are frequently confronted with the need for online surveys (scientific data collection online). That's one of the main reasons why I started with PHP in the first place.
Recently these survey applications have grown and grown. A lot of complexity has been added: reporti... | stackexchange/codereview |
I've seen some code where a Class is imported, instead of a namespace, making all the static members/methods of that class available. Is this a feature of VB? Or do other languages do this as well?
TestClass.vb
public class TestClass
public shared function Somefunc() as Boolean
return true
end functio... | stackexchange/codereview |
I'm a jQuery novice, so the answer to this may be quite simple:
I have an image, and I would like to do several things with it.
When a user clicks on a 'Zoom' icon, I'm running the 'imagetool' plugin (http://code.google.com/p/jquery-imagetool/) to load a larger version of the image. The plugin creates a new div around ... | stackexchange/codereview |
Why is the CheckBoxList removed from ASP.NET MVC preview release 5?
Currently I don't see any way in which I can create a list of checkboxes (with similar names but different id's) so people can select 0-1-more options from the list.
There is an CheckBoxList list present in the MVCContrib library, but it is deprecated... | stackexchange/codereview |
I have a large number of files in a .tar.gz archive. Checking the file type with the command
file SMS.tar.gz
gives the response
gzip compressed data - deflate method , max compression
When I try to extract the archive with gunzip, after a delay I receive the message
gunzip: SMS.tar.gz: unexpected end of file
Is the... | stackexchange/codereview |
UPDATE: i updated the code and problem description to reflect my changes.
I know now that i'm trying a Socket operation on nonsocket. or that my fd_set is not valid since:
select returns -1 and
WSAGetLastError()returns 10038.
But i can't seem to figure out what it is. Platform is Windows. I have not posted the WSAS... | stackexchange/codereview |
I would like to apply some logic to a page containing a CheckBoxList control when the user checks or unchecks individual checkbox items. Say, for instance to dynamically show or hide a related control.
I came up with a way using ASP.Net 2.0 callback mechanism (AJAX) with a combination of client-side Javascript and serv... | stackexchange/codereview |
Even nowadays I often see underscores in Java variables and methods. An example are member variables (like "m_count" or "_count"). As far as I remember, to use underscores in these cases is called bad style by Sun.
The only place they should be used is in constants (like in "public final static int IS_OKAY = 1;"), beca... | stackexchange/codereview |
I'm trying to draw images on the iPhone using with rounded corners, a la the contact images in the Contacts app. I've got code that generally work, but it occasionally crashes inside of the UIImage drawing routines with an EXEC_BAD_ACCESS - KERN_INVALID_ADDRESS. I thought this might be related to the cropping question ... | stackexchange/codereview |
I see a lot of IoC frameworks for .Net and Java. Does anyone know why there are no equivalent frameworks for Smalltalk. This is more a philosophy question than anything else. I'm wondering if there is something in the Smalltalk way of doing things that precludes the necessity of having an IoC framework.
| stackexchange/codereview |
I have the following code below in my Servlet, but when IE hits the page, it returns a blank html page. If I use the response.getOutputStream() directly in the StreamResult constructor, the page loads fine. What am I missing?
response is an instance of HttpServletResponse and xsl is an instance of Transformer from XS... | stackexchange/codereview |
I have a list view that after a double click, a record opens a new form to show the details, but the record in the list view lost the "selection"....
How do I know which record was clicked ???
Thanks
Maria João
| stackexchange/codereview |
I'm still kinda new in ASP.NET and recently I found out about SubSonic, which I started to use. Now it seems funny and such a waste of time (and nerves) when I look back into times when I was developing without SubSonic and jQuery. And there probably are a lot of libraries and frameworks that speeds up development. Whi... | stackexchange/codereview |
How can you get MSSQL server to accept Unicode data by default into a VARCHAR or NVARCHAR column?
I know that you can do it by placing a N in front of the string to be placed in the field but to by quite honest this seems a bit archaic in 2008 and particuarily with using SQL Server 2005.
| stackexchange/codereview |
This is a specific version of this question.
I want to check if I am inserting a duplicate row. Should I check it programmatically in my application layer:
if (exists(obj))
{
throw new DuplicateObjectException();
}
HibernateSessionFactory.getSession().save(obj);
or should I catch the exception thrown by the databa... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.