instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a remote web server that I have full administrator access over, and I want to deploy a website.
When I use Visual Studio's Publish tool, among other things which seem a bit less convenient (FTP etc), I have the option of using either Windows Management Service or Remote Agent Service. All the documentation says ... | stackexchange/codereview |
I am trying to run the pig tutorial scripts in Ubuntu for two days, however I can not manage to make pig connect to hadoop file system. It is still saying: " Connecting to hadoop file system at: file:///"
In fact, hadoop and pig are both working and I can use them, also pig script under pig installation can connect to ... | stackexchange/codereview |
Is there a solution to logout a user (make a browser clear its cached credentials and ask user to login credential once again) for basic HTTP authentication?
I've already looked through the following questions:
logout with basic authentication without closing webbrowser like banking sites will display
HTTP authenticat... | stackexchange/codereview |
I am implementing custom authentication for my silverlight application. If this this code in my app.xaml :-
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SilverlightCustomAuthExample.App"
... | stackexchange/codereview |
I'm looking for an example of how to implement and use Map-Reduce within the RavenDB .NET Client.
I'd like to apply it to a specific scenario: generating unique and total visitor counts.
A sample document that would be stored within RavenDB:
public class StatisticsEntry
{
public string Id { get; set; }
publi... | stackexchange/codereview |
I have a WinForm application. On the main form there are a number of controls, such as labels, textboxes, etc.
If I have another class, within the same assembly, how can I access those controls?
For example from my new class, I want to update a label in Form1?
| stackexchange/codereview |
Im drawing a linear gradient manually by drawing lines with changing colors. However, this is very slow, and i seems to update, when i resize the window. How do i make it faster? The color scale is linear in this example, but later i wan't to make non-linear gradients.
protected override void OnPaintBackground(PaintEve... | stackexchange/codereview |
I use below code to send messages.
// Assume we've created an XMPPConnection name "connection".
ChatManager chatmanager = connection.getChatManager();
Chat newChat = chatmanager.createChat("jsmith@jivesoftware.com", new MessageListener() {
public void processMessage(Chat chat, Message message) {
System.out... | stackexchange/codereview |
Good evening,
I'm trying to use some coding skills to help manipulate a spreadsheet in Google Docs and think the logic I've worked out is sound - but the script just returns results as 'Range'.
Essentially the script is a nested loop and (should) take values from six points in a row of data (starting in 11) and plonk t... | stackexchange/codereview |
The xml is like this: (wordpress url's) I want to strip them and get only the posts words.
http://www.site1.com/dir/this-is-page/
http://www.site2.com/this-is-page
How do i strip the url's and get only "this is page" (without the rest of the urls, and the "-") if i have two diffrent types of urls; one with dir and one ... | stackexchange/codereview |
I've been writing a test for a simple Datamapper class, and I know the method is working, however the test fails and gives me the error "Fatal error: Call to a member function fetchAll() on a non-object in C:\xampp\htdocs\Call log\tests\model_tests.php on line 13." Obviously, this can't be right, because I can verify t... | stackexchange/codereview |
parcelas = (from docuRec in Dados.DOCUREC
where docuRec.CODALUNO == codAluno && docuRec.CODESCOLA == codEscola &&
(configBoleto.DtVencimentoInicial >= (docuRec.VENCESP != null ?
new DateTime(docuRec.DTVENCIMENTO.Year, docuRec.DTVENCIMENTO.M... | stackexchange/codereview |
I am trying to programmatically reduce (lossy) the file size of PNG and GIF files. As part of this I need to reduce the number of colors in the images. I don't want to reduce all the images to a single colors value, so what I am doing is; get the number of unique colors in the image, then; divide this number by 2 to re... | stackexchange/codereview |
I'm just trying to make sense of a basic Android navigation-related question, namely "How can I display the current location". I've used a bit of code from articles and tutorials from my long googling sessions. The display of a simple overlay (circle + text message) is works, yet at a wrong on-screen position (on the E... | stackexchange/codereview |
Is anybody aware of any kind of a simple MacOSX utility that can take a given image and find whether the image is on the screen (perhaps with a certain variance threshold) and then position the mouse and/or click on the area which matches the image? Please don't respond about how this is a terrible idea and shouldn't ... | stackexchange/codereview |
I'm making some tests with spring mvc this days and I have one problem. For a basic application to test with I choose this tutorial:
http://loianegroner.com/2010/09/extjs-spring-mvc-3-and-hibernate-3-5-crud-datagrid-example/
I've downloaded the example and everything works as expected. The problem is when I try to add ... | stackexchange/codereview |
I've got the following query which is running correctly:
$q = $this->createQuery('e')
->where('e.Persons_idUser =?', $request)
->leftJoin('e.JobTitles jt')
->leftJoin('e.EmploymentLevels el');
but when I'm iterate through the result and try to access the fields from the left join:
foreach ($work as $w)... | stackexchange/codereview |
I need the page to scroll just so that an element is visible.
Options I've tried:
jQuery's scrollTo: the problem is that the page scrolls so that the element is on top (or at least it tries to do that, much like how this works: <a name="xyz"> / <a href="#xyz">). I want the minimum amount of scrolling, so that the enti... | stackexchange/codereview |
Been looking for some time now. Are URLs that directly use userIDs in some way prohibited?
| stackexchange/codereview |
has anyone got the bug on Opera (and others) but not IE6 (here everything is OK) when the block (DIV) has a background-image (no-repeat) does not appear if the block has negative margin? Something like this:
#slide_desc {height: 60px;margin-top: -84px;background: url('back/slide_desc.png') no-repeat;}
IE6, IE7 - OK
I... | stackexchange/codereview |
let's say i did add some exe file to the project's resources.
now if i want to run that file, i have to extract it from the resources as a new file and then i can run it
So please can someone help me with how to do it
| stackexchange/codereview |
I would like to make a wheel-style menu which allows the user to rotate the wheel (a UIImageView) to see various options. In the top half of the wheel there is also a selection indicator and the user can select a particular option by dragging the desired option around the wheel and position underneath the selection ind... | stackexchange/codereview |
It's throwing an ArgumentOutOfRangeException in the middle of the For loop, please note that I cut out the rest of the for loop
for (int i = 0; i < CurrentUser.Course_ID.Count - 1; i++)
{
CurrentUser.Course[i].Course_ID = CurrentUser.Course_ID[i];
}
The Code for Course is
public class Course
{
public strin... | stackexchange/codereview |
I have a JS-heavy app and it runs slowly in IE. I'm about to spend about a week optimizing for IE, and I'd like some direction about things to try.
I found this thread referencing Drip, which seems useful:
IE and Memory accumulation in Javascript
I'm looking for tips like, "use for loops instead of $.each" as well as a... | stackexchange/codereview |
I recently had to register an assembly in my GAC for a custom sharepoint job I wrote. Once installed it began throwing an error saying that it could not load an assembly "or one of its dependencies". Do I need to register any of the supporting assemblies (System.Collections for instance) in the GAC in order to get my... | stackexchange/codereview |
I started out with VB6 default shortcuts where Ctrl + R brings up the Solution Explorer window.
Now when I hit Ctrl + R I see a status message saying that VS is waiting for me to hit the next sequence in the chord, suggesting to me that I have shortcuts that begin with Ctrl + R but require another keystroke.
This sugge... | stackexchange/codereview |
I'm in a position where I'd like, when I export a subdirectory of my git repository, to have the full hash of the commit being archived inserted into a given file. The reason for this is that I ship this code (a subdirectory of a repository too large to conveniently regularly export) to my customer, who then builds it ... | stackexchange/codereview |
I have lots of web applications to build/package, and I would like to share their common libraries.
Regarding logging, I would like to bundle slf4j-api with each application, but consider the implementation as provided by my container (which is tomcat currently)
To do so, I copied the two jars, logback-classic and logb... | stackexchange/codereview |
I am trying to make a programmable alarm clock. It should output a melody (.wav) at different moments of time. I used a usercontrol to make a digital clock. I have a timer for showing a progressbar to every second and a button that starts the process. I know exactly the times I want so I don't need any other button. I ... | stackexchange/codereview |
I have one HICON which I want to use as an overlay on another HICON, to create a result HICON. The result HICON will then be used in an "owner draw" control (note: it doesn't use imagelists). The overlay icon has transparency color RGB(0, 255, 0).
How do I go about doing this in Native C++ (I've only found sources th... | stackexchange/codereview |
Is it possible to pass additional parameters with 'j_security_check' in place?
I would like to pass the the ip address from the login page plus other parameters.
| stackexchange/codereview |
I would like to convert a BufferedImage to an java.awt.Image.
My source-image is tif so I use JAI to read it as PlanarImage:
PlanarImage source = JAI.create("fileload", IMG_DIR + tagImgName);
I then save it as an objects attribute as a BufferedImage
tagImg = source.getAsBufferedImage();
For .pdf-Export (via iText) ... | stackexchange/codereview |
How can I add a button to a my ribbon group programmically? Here is my code so far that successfully Adds a new ribbonPage, then Adds a RibbonGroup to the page. But I need to add buttons to the ribbonGroup and its not working for me
Imports DevExpress.XtraBars.Ribbon
Public Class Form1
Private Sub Form1_Load(By... | stackexchange/codereview |
Current setup:
Windows C++ native Application provides a COM interface that is used (RPC style, simple function calls) by a number of plugin executables. Communication is only on the local machine.
[App.exe (COM server)] <-> [plugin1.exe (COM client / possible callbacks etc.)]
<-> [plugin2.exe (... | stackexchange/codereview |
I'm trying to process a CSV file that has as in each row a text field with the name of organization and position of an individual within that organization as unstructured text. This field is usually a mess of text like this:
Assoc. Research Professor Dept. Psychology Univ. California Santa Barbara
I need to pull o... | stackexchange/codereview |
In Maven 2, I was able to set profile properties like these:
<profiles>
<profile>
<id>test</id>
<properties>
<region>test</region>
<application-url>http://localhost:8080/myTestApp</application-url>
<cookie-name>TestCookie</cookie-name>
</properties>
</... | stackexchange/codereview |
I have an wordpress setup into /blog folder under my site directory.
I have a .inc file for fetching the latest blog posts from wordpress to show into my site's homepage.
But when i include that .inc file in my site's homepage via php include, i get redirected to login page.
After a bit of debugging i found this query... | stackexchange/codereview |
In Spring, after validation we get a BindingResult object in the controller.
Simple enough, if I get validation errors I want to re-display my form with the error message above each afflicted field.
So to check for field errors on field username of my FormObject I call:
FieldError usernameFieldError = bindingResult.get... | stackexchange/codereview |
I'm trying to write a test to verify a compiling error. It's about assigning a number to a String type property. But since it's a compiling error, the unit test code won't even be compiled at the first place. So anyone have any suggestion on how to do this?
I'm thinking maybe I can assign the number in runtime and chec... | stackexchange/codereview |
I have a question regarding many-to-many relationships, specifically has_many :through associations.
All the tutorials I found just set you up with the models and migrations but leave you hanging when it comes to controllers.
What I want to do is to update the timestamps of the join table when an article that is alread... | stackexchange/codereview |
If a sentence contains "Hello World" (no quotes) then I need to return true and do something. Possible sentences could be like this:
var sentence = "This is my Hello World and I like widgets."
var sentence = "Hello World - the beginning of all"
var sentence = "Welcome to Hello World"
if ( sentence.contains('Hello Worl... | stackexchange/codereview |
i am a newbie about ruby.
should not the singleton class`s initialize function have any arguments?
here is my code:
require 'singleton'
class AAA
attr :string , true
include Singleton
def initialize(stirng)
@string = "aaa";
end
end
a = AAA.instance("simpleton");
puts a.string
i think should b... | stackexchange/codereview |
I am having trouble sending email from my app at Google App Engine. I am experiencing several newbee hurdles and I would appreciate your help.
I take this function from the tutorial and for the "sender" field I put my gmail account that I used to create the app:
mail.send_mail(sender="owners_email_acco...@gmail.com",
... | stackexchange/codereview |
When press F5 to compile a project, there are no errors or warnings but the form won't show up. What's up?
| stackexchange/codereview |
Like the title says, is it possible? My purpose is to make a little logo on top of the ListView centered in the view pane
Thanks!
| stackexchange/codereview |
I am getting a selection of URLs using:
$("a.someclass")
Now my urls look like:
http://www....com/something/12321
I need to modify the urls by removing the trailing number to become:
http://www....com/something/
How can I do this?
| stackexchange/codereview |
I am using Tiles 2 in my Spring 3 MVC application
i defines a form :
<definition name="addcompany.htm" extends="baseLayout">
<put-attribute name="title" value="Add Company"/>
<put-attribute name="body" value="/WEB-INF/jsp/addcompany.jsp"/>
</definition>
and :
addcompany.(class)=org.springfr... | stackexchange/codereview |
Could you please help me with an opposite issue? I need to close a file, but I am only given a filename (I presume I need to convert it to a file descriptor). Is it possible at all, and if so - in which way? Thanks.
| stackexchange/codereview |
What is the best way to get a layout like the following using HTML & CSS (can't use CSS3)?
My main question is regarding the navigation bar floating at the middle of the top part of the inside container.
Also how would you suggest I create the nav bar? It needs rounded corners and roll over but no sub-menus for now.
... | stackexchange/codereview |
I'm trying to animate the left property of my image that is in a canvas.
When I'm doing :
image.SetValue(Canvas.LeftProperty, destX[i]);
this is working.
But when I'm doing :
Animate(image, lastValue, destX[i], 500);
with
private void Animate(Image image, double val1, double val2, double miliseconds)
{
... | stackexchange/codereview |
I have followed twice this basic tutorial to create a map + an overlay with the AndroidMarker (when you tap him, a popup should appear)
And I still have the same problem, when I press the marker, the application crashed on the dialog.show().
Can you tell me how to debug such problem please ?
My sources can be found he... | stackexchange/codereview |
I have a loop which runs in php..
I only want the loop to run if the local (sydney, australia) time is between 1pm and 3pm.
Can anyone provide an example of how this would function?
Thank you!
| stackexchange/codereview |
What is this widget called (the one with the three buttons), anyone knows?
| stackexchange/codereview |
I'm trying to implement an RSS feed using PHP, as far as I can see it should be working, as if you view source of the page, you see the XML that should be output into the RSS feed (http://www.mattlewis.org.uk/web/rss.php)
Here's the code for the page:
header("Content-Type: application/xml; charset=ISO-8859-1");
... | stackexchange/codereview |
Tl;dr: (I'd rather learn to fish than be fed a fish but am having trouble teaching myself CakePHP associations with a 5 table DB)
So, I'm working on a flight search project with a database person. He's designed the database with appropriate foreign keys and I trust him to have done a good job because he works with dat... | stackexchange/codereview |
I have a wide div that has background image. The div is 1100px wide and when browser window is less than that, theres scrollbars. Is there any ways to avoid the scrollbars? Thats isnt any hack. Now I know I could put it in body image, but I would like to have it this div for a reason.
<body>
<div id="imgWrapper"> <-th... | stackexchange/codereview |
I have a login form in the inner pages but because jQuery Mobile uses AJAX navigation I am not able to post that form when the page is AJAX loaded. But if I put rel="external" in the login link at home page the login form is posted easily but then i lose the cool features provided by jQuery Mobile. Is there any way to ... | stackexchange/codereview |
I created a small function that simply writes text to a file, but I am having issues making it write each piece of information to a new line. Can someone explain why it puts everything on the same line?
Here is my function:
public void writeToFile(def directory, def fileName, def extension, def infoList) {
File f... | stackexchange/codereview |
When configuring the requestedExecutionLevel in an manifest, there is a setting option uiAccess which "Indicates whether the application requires access to protected user interface elements"
(see http://msdn.microsoft.com/en-us/library/6ad1fshk.aspx)
What exactly does "protected user interface elements" mean?
| stackexchange/codereview |
I am developing and testing a facebook app for which I have granted the permissions with my facebook account. Then the app is authorized to access my info, etc. nicely. The next time I close the browser, reopen it, login to facebook successfully then access the app, facebook wants me to login to that app again. I can a... | stackexchange/codereview |
I have code that works on a handful of servers, but not others which is coming up with serialised data. I call a page like this:
http://domain/index.php/sales/Drilldowns?params=a:12:{s:13:"selectionType";s:8:"facility";s:8:"dateType";s:5:"daily";s:10:"dateOption";s:9:"drilldown";s:6:"metric";s:13:"bookingAmount";s:9:"c... | stackexchange/codereview |
How do I convert the following for-loop containing an if/else into a list comprehension?
results = []
for x in xs:
results.append(f(x) if x is not None else '')
It should yield '' if x is None, and otherwise f(x).
I tried:
[f(x) for x in xs if x is not None else '']
but it gives a SyntaxError. What is the correct... | stackexchange/codereview |
I'm trying to create a basic SSL connection from a node.js app to a locally hosted nginx server; it involves sending the client's credentials as well. The handshake seems like it was successful as calling "verifyPeer" from within a "secure" event verifies that much. However, the server continues to respond with nothing... | stackexchange/codereview |
I have downloaded Netbeans 7.0 beta as I wanted to give the PhpDoc functionality a bash, but can't get it to work.
I seem to be falling over on the configuration options for PhpDoc in netbeans. It is asking for the script location,
but whatever I enter I get the error;
** ERROR ****************************************... | stackexchange/codereview |
I have a program that runs as a desktop application, but can also be installed as a windows service. The installation is done by using an "install as service" button on the GUI. The event handler for this button looks like this:
ProcessStartInfo psi = new ProcessStartInfo("sc", "description " +
this.ServiceName + "... | stackexchange/codereview |
How to enable / disable any record in gridview ?
using mssql
I want in my gridview the following will appear ..
Name Course Year Status
Sam MCA 2010 Enable
when i click on enable then record will be displayed in gridview and the enable button will convert into ... | stackexchange/codereview |
How to specify file to search for a function drupal_get_form?
| stackexchange/codereview |
For example, if user is doing other things but not viewing this page, jquery/javascript can know?
I don't need to be very accurate, just roughly.
| stackexchange/codereview |
I'm developing a rather heavy JavaScript interface to a site I'm building, and I've decided to use the (recently made official) jQuery templates plugin to generate my elements from my queries to a JSON API. Now, the problem I'm currently having is:
I'm prone to have a bunch of these templates around. One for each kind ... | stackexchange/codereview |
I am trying to develop a system where this application allows user to book ticket seat. I am trying to implement an automatic system(a function) where the app can choose the best seats for the user.
My current database(seats.txt) file store in this way(not sure if its a good format:
X000X
00000
0XXX0
where X means the... | stackexchange/codereview |
I'm trying to find the source of a memory leak in a Compact Framework application using the Remote Performance Monitor. I managed to remove a few minor ones related to brushes and other graphic objects, but I still don't have a clear idea of what is causing the main problem.
At this point the only objects that seem to ... | stackexchange/codereview |
I realise this question is very similar to this one, but unfortunately it doesn't quite solve my problem.
I have a console app with the following in my castle config section:
<component id="LegacyMessageFormatter"
service="System.Messaging.IMessageFormatter, System.Messaging"
type="MsmqLogProces... | stackexchange/codereview |
Where can the Lotus Notes (Interop.)Domino.dll be downloaded ? Must I have installed a Lotus Client?
| stackexchange/codereview |
Has anyone tried to install the new Windows Phone 7 tools? Mainly, I would like to know if it allows Visual Studio 2010 to open Smart Device projects from older versions of Visual Studio.
| stackexchange/codereview |
I want to create a console application that behaves as follows:
The first instance of the app will execute a process.
The second instance executed later will kill the process.
Is there a simple way to do so?
EDIT:
The second instance also terminates the first instance and itself.
EDIT 2:
More details scenario is as f... | stackexchange/codereview |
i am storing member's created date using the time() function, and echo them back using strftime() and the date() function, but it doesnt display the right time information
my code is :
date("d-m-Y H:i:s", $member->created)
strftime("%Y-%m-%d",$member->created)
it should have displayed this:
17-11-2010 14:42
rather th... | stackexchange/codereview |
I know 0D 0A means new line,What's 09 09 09 09 09 09 09 3F ?
It's from UTF-8.
| stackexchange/codereview |
I am teaching my self hibernate, and am quite confused of why i can not just write simple SQL queries.
I find it rather more confusing to use than plain SQL (what I am used to)
PLUS: The NetBeans HQL editor I found pretty annoying, It is harder for me to produce a right query in HQL, then in SQL, and why does the shown... | stackexchange/codereview |
I need a Application.cfm like project level file for PHP.
| stackexchange/codereview |
C# Array, How to make data in an array distinct from each other?
For example
string[] a = {"a","b","a","c","b","b","c","a"};
how to get
string[]b = {"a","b","c"}
| stackexchange/codereview |
Id like to use the blue compass needle we all know from the Gmaps app.
Is there a widget available I just
have to turn on?
If not, could you provide me
Tutorials or the name of classes I
should take a look at?
| stackexchange/codereview |
Hello
I am trying to use WritableBitmap.BackBuffer as used in this example, see the section examples.
What I am trying to do really is write an int[] into a space a nativeint points to.
To be able to write from int [] to some memory I started from this answer on SO.
Microsoft.FSharp.NativeInterop.NativePtr.write seem... | stackexchange/codereview |
I'm using Jersey in Mule v2.2.1 to expose a REST interface. I having trouble determining how to expose the service and process the file. For example, I'm looking for something like this:
@POST
@Path ("\processFile")
@Consumes ("plain/text")
void processFile ();
| stackexchange/codereview |
need help with how to correct this please
Server Error in '/pulse' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could ... | stackexchange/codereview |
So I am working on an MVC project to put to work the studying I have been doing. I am wrestling with the concept of Database Table relationships and foreign keys. I am working on a simple ecommerce site (displays products, shopping cart, user accounts..etc).
I have the following tables to start out with:
1) Products
... | stackexchange/codereview |
How to autochange the size of ADBannerView when iphone is in landscape mode or portrait mode.
iAd appears in landscape mode but not in the portrait mode.
| stackexchange/codereview |
After calling setTimeout, is there memory leak issue without calling clearTimeout?
Thanks.
| stackexchange/codereview |
What is the best way to transfer changes that include new and deleted directories and/or new and deleted (actually moved) files in those directories from a subversion repository on linux to windows?
I do my developments on linux using a subversion repository, but I have to test my changes on windows as well. My window... | stackexchange/codereview |
On 64-bit architectures, long int, according to gcc is at least an int64_t. On 32-bit, long int is at least int32_t. With Microsoft compilers, long is always an int32_t, regardless of 32/64-bit. Is there any way to:
Force gcc to treat long as a int64_t, on 32bit? (for ease of testing)
Force gcc to treat long as a int3... | stackexchange/codereview |
I plan to design a data structure including elements as this,
{1, 13, 15, 113, 117, 145}
{2, 23, 27}
{5, 53, 55, 511, 519}
{9, 11}
I have two ideas till now.
1st. Build an Dictionary(Key, Value);
When Key = 1, Value = ArrayList(13, 15, 113, 117, 145)
When Key = 2, Value = ArrayList(23, 27)
When Key = 5, Value = Arra... | stackexchange/codereview |
I am using jQuery to show and hide li elements of a tree(tree is build using ul and li elements ) based on some condition.
here is my code.
function filterLeftNavTree(filterData){
if(filterData.indexOf("|")!=-1){
$("ul.treeview").find("li").hide();
var filterData = filterData.split("|"); ... | stackexchange/codereview |
1. links: link_id, road
2. roads: road, code
2. admin_classes: code, admin_class, priority
So, for ONE LINK_ID I have several codes and several admin_class+priority raws
But in result set i need only one row for each link_id:
link_id and admin_class, that refers to min priority.
I try to make sql statement, like foll... | stackexchange/codereview |
I have an implementation which hooks into the keydown event, which suppresses the keypress event and does some magic. Now I want to show something more friendly than "ControlKey" etc, so there's a switch you can see in the code below. Except I've realised things like the number keys along the top end up as D1, D2, etc.... | stackexchange/codereview |
Using sharepoint build in lookup column and it set to required field. SharePoint automatically selects the first item in the dropdown box (kinda misleading for the end users).
Is there a way to display blank or Null for the first row of this drop down box?
(I am open to any solution. I prefer javascript type solution)
| stackexchange/codereview |
I'm trying to replicate the Convert.ToBase64String() behavior in Ruby.
Here is my C# code:
var sha1 = new SHA1CryptoServiceProvider();
var passwordBytes = Encoding.UTF8.GetBytes("password");
var passwordHash = sha1.ComputeHash(passwordBytes);
return Convert.ToBase64String(passwordHash); // returns "W6ph5Mm5Pz8GgiULbPgz... | stackexchange/codereview |
I want to have a field for a span of time in a rails form, with 3 input fields, for hours, minutes, and seconds, and store all of this as in integer (in seconds) in the DB. How would I go about accomplishing this?
| stackexchange/codereview |
In Access 2007, I have two tables related such that the (surrogate) PK of one is an FK in the other:
table Organization (
org_id int PK,
other_fields whatever,
contact_id int FK
)
table contact (
contact_id int PK,
contact_nm text(255),
other_fields whatever
)
Obviously n... | stackexchange/codereview |
Anyone knows where can I find the documentation for IE's JavaScript (which functions supports and stuff like that, not stuff specific to the JavaScript language like operators, etc.)?
| stackexchange/codereview |
I am using the following code to create a custom event log in my windows service application:
public ServiceConstructor()
{
InitializeComponent();
if (!EventLog.SourceExists("WinService"))
{
EventLog.CreateEventSource("WinService", "WinServiceLog");
eventLog1.Source = "WinService";
eventLog1.Log = "Wi... | stackexchange/codereview |
How NUnit has helped you to come out with your solution for unit tests? How fast you were able to implement it from the scratch? Any tips can be given which will help us to implement Nunit quickly and efficiently?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.