instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Does anyone know of a tool to take a T-SQL query and convert it into a LINQtoSQL query?
stackexchange/codereview
Is there any way to add iCal event to the iPhone Calendar from the custom App?
stackexchange/codereview
Currently I'm running several websites that have several (branded) duplicates each, in the same IIS. I wanted to have an easy overview of all the website groups so I used a naming convention like [siteName].[brandCode]. But lo and behold, IIS has its very own (seemingly random) way of ordering the entries in the "Web S...
stackexchange/codereview
Where to read up on (the best-practice in) source code formatting, for individual languages i.e. what are the conventions for naming variables etc., for indentation and where to place braces, how and where to include comments, etc. For example for C Kernighan and Ritchie's book The C Programming Language and Linus Tor...
stackexchange/codereview
I'm looking to get data such as Size/Capacity, Serial No, Model No, Heads Sectors, Manufacturer and possibly SMART data.
stackexchange/codereview
I have been trying to parse Java exceptions that appear in a log for some code I'm working with. My question is, do you parse the exception trace from the top down, or the bottom up? It looks something like this: ERROR [main]</b> Nov/04 11:03:19,440 [localhost].[/BookmarksPortlet].[] - Exception sending context... org....
stackexchange/codereview
I want to use LabVIEW's Call Library Function Node to access a DLL function, and have this function return a string to displayed on my VI. How would I go about doing this? I am quite happy returning numbers from my DLL, but am really struggling to find any examples of how to return a string.
stackexchange/codereview
After moving a project from .NET 1.1 to .NET 2.0, MsBuild emits lots of warnings for some COM objects. Sample code for test (actual code doesn't matter, just used to create the warnings): using System; using System.DirectoryServices; using ActiveDs; namespace Test { public class Class1 { public static v...
stackexchange/codereview
I'm looking to create an Intellij IDEA language support plugin for Erlang. The first and biggest problem I've had is in making the JFlex Erlang syntax definition. Does anyone know where can I get the EBNF or BNF for Erlang?
stackexchange/codereview
I can't understand the concept and, first of all, where it belongs. Is it solely a Shrepoint concept or more general like of ASP.NET or IIS level? Does it only affect authentication and if so how does it affect it? Or what effect does it have on an application? I know it is a broad question, but I've googled for about ...
stackexchange/codereview
I am attempting to bind a WPF textbox's Maxlength property to a known constant deep within a class. I am using c#. The class has a structure not too dissimilar to the following: namespace Blah { public partial class One { public partial class Two { public string MyBindingValue { get...
stackexchange/codereview
I'm starting a new project; I wish to follow a DDD approach. We have talked to the business and achieved some insight into the domain in some detail (internet TV). The team is five strong and distributed. We have adopted the repository pattern for data-access. We are following a service-based approach overall; servi...
stackexchange/codereview
Does anyone know of a good Eclipse POJO generator? The generate getter\setters and constructor from fields functions are all really nice, but it would be useful to have that tied into a new class\POJO dialog.
stackexchange/codereview
I have a C++ library that provides various classes for managing data. I have the source code for the library. I want to extend the C++ API to support C function calls so that the library can be used with C code and C++ code at the same time. I'm using GNU tool chain (gcc, glibc, etc), so language and architecture supp...
stackexchange/codereview
I have 2 databases, and I want to transport an existing table containing a CHAR column from database A to database B. Database A is Oracle 9i, has encoding WE8ISO8859P1, and contains a table "foo" with at least 1 column of type CHAR(1 char). I can not change the table on database A because it is part of a third party ...
stackexchange/codereview
I have what is essentially a jagged array of name value pairs - i need to generate a set of unique name values from this. the jagged array is approx 86,000 x 11 values. It does not matter to me what way I have to store a name value pair (a single string "name=value" or a specialised class for example KeyValuePair). Add...
stackexchange/codereview
I know about this question: Which (third-party) debug visualizers for Visual Studio 2005/2008 do you use? But I don't want to know what debug visualizers you use, I want to know which debug visualizers are out there. I have only found Mole (http://www.codeproject.com/KB/macros/MoleForVisualStudioEdit.aspx), which is gr...
stackexchange/codereview
Is there a collection (BCL or other) that has the following characteristics: Sends event if collection is changed AND sends event if any of the elements in the collection sends a PropertyChanged event. Sort of an ObservableCollection<T> where T: INotifyPropertyChanged and the collection is also monitoring the elements ...
stackexchange/codereview
What is the lowest SQL Server 2005 edition to support SSIS?
stackexchange/codereview
I have a DataGridView whose DataSource is a DataTable. This DataTable has a boolean column, which is interpreted as a checkbox in the DataGridView. employeeSelectionTable.Columns.Add("IsSelected", typeof(bool)); ... employeeSelectionTable.RowChanged += selectionTableRowChanged; dataGridViewSelectedEmployees.DataSource ...
stackexchange/codereview
There are all sorts of advantages to using Emacs, but for someone comfortable with the usual Win32 applications it comes with a wall-like learning curve. With most other editors it’s possible to just start using them and then learn about their other features and enhancements as you go along. How to just get on with us...
stackexchange/codereview
I have an ArrayList<String>, and I want to remove repeated strings from it. How can I do this?
stackexchange/codereview
I'm writing a C++ client which is using libcurl for communicating with a PHP script. The communication should be session based, and thus the first task is to login and make the PHP script set up a session. I'm not used to working with sessions either from C++ or PHP. I basically know that it has to do with cookies and ...
stackexchange/codereview
I need to to iterate over the files in a directory and perform the following replacement. Before: Hello ${USER_NAME}, you live at ${HOME_ADDRESS}. It is now ${TIME} After: Hello ${userName}, you live at ${homeAddress}. It is now ${time} The number of different tokens that appear within ${} is large, so it's not...
stackexchange/codereview
I am using XmlReader in .NET to parse an XML file using a loop: while (xml.Read()) { switch xml.NodeType { case XmlNodeType.Element: //Do something case XmlNodeType.Text: //Do something case XmlNodeType.EndElement: //Do something } } I was wondering if it was normal that the fo...
stackexchange/codereview
Here's what MSDN has to say under When to Use Static Classes: static class CompanyInfo { public static string GetCompanyName() { return "CompanyName"; } public static string GetCompanyAddress() { return "CompanyAddress"; } //... } Use a static class as a unit of organization for methods not associated...
stackexchange/codereview
I have some files stored in a SQL Server 2005 table in a VARBINARY(MAX) column. I need to email these files to users on a schedule, and though I can write a C# service to extract and send the email sp_send_dbmail would seem to be perfect for my purpose. The code I'm using looks like this: EXEC msdb.dbo.sp_send_dbmail @...
stackexchange/codereview
I am trying to write an interface between RSPEC (ruby flavoured BDD) and a Windows application. The application itself is written in an obscure language, but it has a C API to provide access. I've gone with Ruby/DL but am having difficulties getting even the most basic call to a DLL method to work. Here is what I ha...
stackexchange/codereview
Ok: This is some of my table structure that matters here CaseStudyID int Title nvarchar(50) OverrideTitle nvarchar(50) Part of my procedure Declare @Temp table(CaseStudyID int, Title nvarchar(50)) Insert Into @Temp SELECT CaseStudyID,Title FROM CaseStudy WHERE Visible = 1 AND DisplayOnHomePage = 1 ORD...
stackexchange/codereview
I recently started learning Python and I was rather surprised to find a 1000 deep recursion limit (by default). If you set it high enough, about 30000, it crashes with a segmentation fault just like C. Although, C seems to go quite a lot higher. (The Python folks are quick to point out that you can always convert rec...
stackexchange/codereview
template <class M, class A> class C { std::list<M> m_List; ... } Is the above code possible? I would like to be able to do something similar. Why I ask is that i get the following error: Error 1 error C2079: 'std::_List_nod<_Ty,_Alloc>::_Node::_Myval' uses undefined class 'M' C:\Program Files\Microsoft Visual Studi...
stackexchange/codereview
I am having an ASP.net page with userid and question and answer I need to verify the userid, answer is correct or not I no need to enablepasswordretrival and my password is hashed how to do
stackexchange/codereview
We have a custom service that writes to a DB (SQL 2005). This is a full 64-bit environment (DB, .NET service). On one of our servers we crash every morning when we have a spike in our volume of data. On another server we run fine. The only differences that I've been able to notice between the two machines is that t...
stackexchange/codereview
I get this error:- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' at line 1 whenever I tried something like this:- mysql> source /home/user1/sql/ddl.sql mysql> source /home/user1/sql/insert.sql mysql> source /home/user1/sql/clea...
stackexchange/codereview
I am new to Java and am trying to run a program using Eclipse. But I have no idea how to get the command prompt running in with Eclipse... I did some online research and couldn't get anything consolidated! Update: I'm not using an applet. It's a normal Java program trying to read a line from command prompt. I'm trying ...
stackexchange/codereview
I Have one entity [Project] that contains a collection of other entities [Questions]. I have mapped the relation with a cascade attribute of "all-delete-orphan". In my DB the relation is mapped with a project_id (FK) field on the questions table. this field cannot be null since I don't want a Question without a Project...
stackexchange/codereview
I have a database with a table which is full of conditions and error messages for checking another database. I want to run a loop such that each of these conditions is checked against all the tables in the second database and generae a report which gives the errors. Is this possible in ms access. For example, querycrit...
stackexchange/codereview
We (occasionally!) have to issue hot fixes for our product and do this by reissuing the affected files directly rather than with a new installer. The product has a large number of pieces, some managed code, some unmanaged. Currently development flags which build artifacts (exes, dlls) need to be shipped in a hot fix. ...
stackexchange/codereview
Mac's have TextMate as there preferred application for ruby development, but what would be the preferred application for linux? I need something where it's easy to work with multiple files, project structure and setup commands to run my ruby app or if it is one my merb app.Syntax highlighting is also a must. Now I typi...
stackexchange/codereview
select max(DELIVERY_TIMESTAMP) from DOCUMENTS; will return the time that the latest document was delivered. How do I return the other columns for the latest document? For example I want DOC_NAME for the document that was most recently delivered? I'm not sure how to form the WHERE clause.
stackexchange/codereview
I'm using th WebBrowser control in the .net 2.0 framework. Is it possible to change the printing behavior so it always prints to the default printer, without showing any dialog to the user? This is for a kiosk so there will always be a printer directly connected to the Kiosk, and printing should be seemless to the use...
stackexchange/codereview
I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains a TreeView. The second panel contains a label and is triggered by a selection in the tree. When I select a node the label gets updated as expected and the TreeNode that I clicked on becomes highlighted and the previously selected node i...
stackexchange/codereview
Is it possible to obtain the maximum column length for a VARCHAR, CHAR etc?
stackexchange/codereview
Possible Duplicate: Big integers in C# I want to be able to process arbitrarily large numbers in C#. I can live with just integers. Are there established algorithms for this kind of thing? Or is there a good 3rd-party library? I might consider changing language if there really is no good way to do it in C#. Th...
stackexchange/codereview
I have an application which get copied and run on client machines. The program is in the form of an Adobe Projector file. I want to write a process that checks when the program starts running whether or not the license is still active, and if not, delete the entire program. The program itself knows the real date that ...
stackexchange/codereview
Identicons are those icons based on a user IP or name or so which provide an automated avatar... just like the avatar icon on StackOverflow. Here are some available systems (hat tip to Roger Browne): http://haacked.com/archive/2007/01/22/Identicons_as_Visual_Fingerprints.aspx http://digitalconsumption.com/forum/Visigl...
stackexchange/codereview
How to set the turbo c path in windows globally so that i can compile and run my C programs (which are in other drives) using command prompt in windows XP? Can any one tell me how to get commands at every drive in the command prompt just by typing in c:\tcc in command prompt in windows and turbo c environment?
stackexchange/codereview
I have a C++ app in VS2005 and import a VB DLL. IntelliSense shows me all the symbols in the DLL as expected but it also shows all (or nearly all) of them again with an underscore prefix (no @s in them though). Why is this? What are the differences between the underscored items and the normal items?
stackexchange/codereview
I run a small php/mysql website for a camera club where users can upload photos. I have recently started storing email addresses for doing password resets. My question is what is the best practice for dealing with users' personal information: are there any laws/legislation regarding what I can do with personal informa...
stackexchange/codereview
How do you process information in Java that was input from a file. For Example: suppose you have a file input.txt. The contents of this file is: abcdefghizzzzjklmnop azzbcdefghijklmnop My hope would be that the information would be put into the argument array of strings such that the following code would output "ab...
stackexchange/codereview
I've a terrible memory. Whenever I do a CONNECT BY query in Oracle - and I do mean every time - I have to think hard and usually through trial and error work out on which argument the PRIOR should go. I don't know why I don't remember - but I don't. Does anyone have a handy memory mnemonic so I always remember ? For ex...
stackexchange/codereview
I've got a junk directory where I toss downloads, one-off projects, email drafts, and other various things that might be useful for a few days but don't need to be saved forever. To stop this directory from taking over my machine, I wrote a program that will delete all files older than a specified number of days and l...
stackexchange/codereview
This is a very simple question with a simple answer, but it is not quite so simple to find the answer on the internet. I have a simple Setup (deployment) project in Visual Studio 2008, and I have the EULA text. What do I need to do in the project to get the EULA into the install wizard?
stackexchange/codereview
Is there a way in C# to: Get all the properties of a class that have attributes on them (versus having to loop through all properties and then check if attribute exists. If i want all Public, Internal, and Protected properties but NOT private properties, i can't find a way of doing that. I can only do this: Property...
stackexchange/codereview
I am looking for an expression for the .hgignore file, to ignore all files beneath a specified folder. eg: I would like to ignore all files and folders beneath bin Actually any advice on how the expressions are formed would be great
stackexchange/codereview
I was hoping someone could send me in the direction of a regularily updating time zone database. I have found one, but apologies i cant remember where it was from, however with the current GMT clock change fast approaching, i fear all my data will be incorrect, ie the differences from UK to New Yrok will change from 5 ...
stackexchange/codereview
Given a model's instance object, how can I get the database table's name? I don't want to specify names explicitly in the Meta class.
stackexchange/codereview
I am Manoj again here to ask you my doubts. I heard that in turbo c when we are doing projects with more than one source file then we can generate list file and map file . What are they? what do they contain? And how to generate them using the commands at MS-DOS command prompt using tcc for turbo c? How to generate the...
stackexchange/codereview
I'm trying to create a WSTransfer implementation (I realise Roman Kiss has written one already for WCF - but it doesn't actually meet the specifications) I've ended up abandoning data contracts on the service contacts because WSTransfer is loosely coupled; so each the create message looks like Message Create(Message re...
stackexchange/codereview
When using Lucene.Net with ASP.NET, I can imagine that one web request can trigger an update to the index while another web request is performing a search. Does Lucene.Net have built in it the ability to manage concurrent access, or do I have to manage it, to avoid "being used by another process" errors? EDIT: After...
stackexchange/codereview
Just wondering where is best to put functionality in an MFC application that is triggered when the whole window is resized. I was thinking mainfrm but I couldn't seem to capture any OnSize messages... Can someone tell me what I am doing wrong?
stackexchange/codereview
I am trying to do something like this: while @nrOfAuthlevels >= @myAuthLevel begin set @myAuthLevel = @myAuthLevel + 1 SELECT Role.name, Role.authorityLevel FROM [dbo].[Role] ORDER BY Role.authorityLevel end The result of this stored procedure shall be a table with all Role.authorityLevel ...
stackexchange/codereview
Are there any good team-chat websites, preferably in Python, ideally with CherryPy or Trac? This is similar to https://stackoverflow.com/questions/46612/whats-a-good-freeware-collaborative-ie-multiuser-instant-messenger#46660, but a few primary differences: 1) I very much want to host the server. 2) I don't care if Smi...
stackexchange/codereview
I have code like this: template <typename T, typename U> struct MyStruct { T aType; U anotherType; }; class IWantToBeFriendsWithMyStruct { friend struct MyStruct; //what is the correct syntax here ? }; What is the correct syntax to give friendship to the template ?
stackexchange/codereview
How to include any assembly code lines into my C program ? In turbo c is there a possibility to add an assembly code file (.asm) to a project of few .c files?
stackexchange/codereview
When I give Java and C large floats and doubles (in the billion range), they convert them to scientific notation, losing precision in the process. How can I stop this behavior?
stackexchange/codereview
I've implemented a few poor solutions for bringing up an AJAX loader before dynamically updating a content DIV, but none seem to be "universal", and I find each time I do it I'm reworking it. If I have a DIV with content that updates depending on what a user clicks on the page, and I want to display the loader over thi...
stackexchange/codereview
Is it possible to create a footer div that sits at the bottom of a site regardless of how much information is present in the middle? Currently the div I have is positioned depending on how much content i have in the body. See also: How do you get the footer to stay at the bottom of a Web page?
stackexchange/codereview
I've got a tomcat 6 web app running with Apache httpd as the front end. I'm using mod_proxy and mod_proxy_ajp to forward the requests to tomcat. My server is running Ubuntu. Now I'm trying to use mod_rewrite to remove the leading www, so that my canonical website URL is http://example.com rather than http://www.example...
stackexchange/codereview
I'm coding a small CMS to get a better understanding of how they work and to learn some new things about PHP. I have however come across a problem. I want to use mod_rewrite (though if someone has a better solution I'm up for trying it) to produce nice clean URLs, so site.com/index.php?page=2 can instead be site.com/to...
stackexchange/codereview
I have some code in C# which has a com wrapper. This com wrapper is used in a native c++ application. The c++ code uses a method which returns an array of instances of a class from the c# library. The instances come from a SafeArray like so: for (long i =min; i<=max;i++) { IMyInterface *l = (IMyInterf...
stackexchange/codereview
(Bear with me, I promise this gets to shebang and windows.) I have about the simplest of WEBRick servers put together: require 'webrick' include WEBrick s = HTTPServer.new(:Port=>2000, :DocumentRoot=>Dir::pwd) s.start Couldn't be simpler. This basic server does accept http connections (firefox, internet exploder, wg...
stackexchange/codereview
I was wondering if I could pop up JOptionPanes or other Swing components from within a browser using JSP.
stackexchange/codereview
How can I group by two different fields in a Crystal Report? Foe example : val1|val2|val3|val6 val1|val12|val3|val7 val11|val2|val3|val8 val11|val12|val3|val9 I want the report to look like val1 : ======= val2 ---- val3|val6 val12 ------- val3|val7 val11 : ========= val2 ----- val3|val8 val12 : ------ val3|val9 ...
stackexchange/codereview
Please could someone help me with writing a regex expression to replace 0044 token which will be at the start of the string with a 0. Please note that I do not want to replace all 0044 tokens with 0, only those that appear at the start of the string. Thanks a lot
stackexchange/codereview
I am using the EMMA tool for code coverage yet despite my best efforts, EMMA is refusing to see the original .java files and generate coverage on a line-by-line basis. We are using ANT to build the code and debug is set to true. I know that EMMA is measuring coverage as the .emma files seem to be generating and merging...
stackexchange/codereview
I have a class derived from CTreeCtrl. In OnCreate() I replace the default CToolTipCtrl object with a custom one: int CMyTreeCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CTreeCtrl::OnCreate(lpCreateStruct) == -1) return -1; // Replace tool tip with our own which will // ask us for the text t...
stackexchange/codereview
This probably has a simple answer, but I must not have had enough coffee to figure it out on my own: If I had a comma delimited string such as: string list = "Fred,Sam,Mike,Sarah"; How would get each element and add quotes around it and stick it back in a string like this: string newList = "'Fred','Sam','Mike','Sarah'...
stackexchange/codereview
When using IDbCommand, IDataReader, or DataTable, can you depend on the destructor to dispose resources, or will these objects leak resources if dispose is not called directly?
stackexchange/codereview
I want to implement the solution using the pre-processor described here: Reuse define statement from .h file in C# code Bonus points if you can point me to the docs at MSDN. I'm having trouble finding them...
stackexchange/codereview
I was wondering if this seemed to familiar to any experience NHibernate developers or if someone could give me an idea as to where to start to try and resolve this issue: I inherited an NHibernate site written in ASP.NET 1.1 using NHibernate 0.6 and .NET remoting to the DAL layer residing on the database server. I hav...
stackexchange/codereview
I'm trying to speed up a data load which is controlled via a PL/SQL stored procedure. I've programmatically altered the indexes for the table I want to refresh to be unusable. I want Oracle to ignore these unusable indexes. I can issue the statement: ALTER SESSION SET skip_unusable_indexes = TRUE but I subsequently ...
stackexchange/codereview
I am trying to log a method's parameters by using reflection. I read the earlier question posted about this issue on StackOverflow as well which pointed me to CLR API's. Is it possible, someone can point me to the right direction, as to how will I get the values of parameters passed using API?
stackexchange/codereview
I'm not a C++ developer, but I've always been interested in compilers, and I'm interested in tinkering with some of the GCC stuff (particularly LLVM). On Windows, GCC requires a POSIX-emulation layer (cygwin or MinGW) to run correctly. Why is that? I use lots of other software, written in C++ and cross-compiled for dif...
stackexchange/codereview
So odd situation that I ran into today with OrderBy: Func<SomeClass, int> orderByNumber = currentClass => currentClass.SomeNumber; Then: someCollection.OrderBy(orderByNumber); This is fine, but I was going to create a method instead because it might be usable somewhere else other than an orderBy. private int R...
stackexchange/codereview
I've uploaded a bunch of images to Amazon S3, and now want to add a Cache-Control header to them. Can the header be updated without downloading the entire image? If so, how?
stackexchange/codereview
According to the help file that comes with the Spring.NET framework, you can inject a dependancy defined in the local file by using an 'idref' tag along with a 'local' attribute. I have been trying to do this with no success and was hoping someone had the experience to help me out. Below I have a snippet from the c...
stackexchange/codereview
I have a problem with how ASP.Net generates the img tag. I have a server control like this: <asp:Image runat="server" ID="someWarning" ImageUrl="~/images/warning.gif" AlternateText="Warning" /> I expect it to generate this: <img id="ctl00_ContentPlaceHolder1_ctl00_someWarning" src="../images/warning.gif" /> but ins...
stackexchange/codereview
I used an application recently that was awe-inspiring. All the forms inherited from their own classes and a 'form' came with an amazing amount of functionality and looked the nuts. What I'm interested in is this 'feature' of the form. This was a C# WinForms project and blew me away. The forms were bound to objects that...
stackexchange/codereview
I want to be able to run a function in my firefox sidebar js file when the selected tab in the main content window is reloaded or changed. So the sidebar can change depending on the site the user is looking at. Anyone able to point me in the right direction?
stackexchange/codereview
I am working on a git repository with a master branch and another the topic branch. I have switched to topic branch and modified a file. Now, if I switched to the master branch, that same file is shown as modified. For example: git status in git-build branch: # On branch git-build # Changes to be committed: # (use "g...
stackexchange/codereview
I have an application which has to live as a service, I create an object which then spawns off a buch of threads. If I set the only reference to that object to null will all the child threads get cleaned up? or will I suffer from a memory leak. Do I have to explicitly terminate all the child threads?
stackexchange/codereview
I've had my first go at writing a DLL in Delphi. So far so good. By using a typelib I've been able to pass Widestrings to and from the DLL without difficulty. What's curious at the moment is that I'm using VB6 as the testbed, and every time I run a test within the IDE, the program runs and then the IDE process suddenly...
stackexchange/codereview
Is it possible to send a HTTP response with a permanent redirect from a Stellent (now called Oracle UCM) website? We're using version 7.5.2 with iDoc script. We can use the iDoc function setHttpHeader() to send the Location HTTP header, but how to send the HTTP response code 301, to signal the permanent redirect to the...
stackexchange/codereview
How do I configure an ASP.NET application to write verbose log messages of what ASP.NET engine itself is doing? What I get with <trace enabled="true" pageOutput="false" requestLimit="10000" writeToDiagnosticsTrace="true"/> is just [2488] aspx.page: Begin PreInit [2488] aspx.page: End PreInit [24...
stackexchange/codereview
My studio has a large codebase that has been developed over 10+ years. The coding standards that we started with were developed with few developers in house and long before we had to worry about any kind of standards related to C++. Recently, we started a small R&D project in house and we updated our coding convention...
stackexchange/codereview
I am a SQL Server user . I am on a project that is using oracle (which I rarely use) I need to create an ODBC connection so I can access the some data via MS Access I have a application on my machine called oraHome90. It seems to allow a configuration of something called a listener in a “net configuration utility”, I ...
stackexchange/codereview
I've been looking for a simple regex for URLs, does anybody have one handy that works well? I didn't find one with the zend framework validation classes and have seen several implementations.
stackexchange/codereview
I've inherited a web project (Servlets) which is currently build inside eclipse. I want to add maven around it. But the project's source directory is not following the maven convention. Instead of being inside src/main/java, it's src/package/name/... I don't want to change anything right now because they are working at...
stackexchange/codereview
I'm using the code below to save a password to the registry, how do I convert it back? The code below isn't mine but it encrypts well. Thanks using System.Security.Cryptography; public static string EncodePasswordToBase64(string password) { byte[] bytes = Encoding.Unicode.GetBytes(password); byte[] dst = new...
stackexchange/codereview