instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have to plan a conversion for a table. The table structure is something like
COULMN1 CHAR(1)
COLUMN2 VARCHAR2(20)
COLUMN3 DATE
I need to convert this table according to following logic:
IF COLUMN2 = 'XXX' then update COLUMN1 = 'X'
The number of rows to be updated is huge (in Millions). So, I cannot put a ... | stackexchange/codereview |
For convenient usage I want to write formatting function similar to sprintf just returning std::string, like this:
std::string format_string(const char* format, ...)
I can use vsnprintf there but have problem - I don't know in advance how long temp buffer should be. On Microsoft have function _vscprintf that can do it... | stackexchange/codereview |
I wonder if I can create a RelayCommand on my ViewModel like this:
public RelayCommand<IList<VectorViewModel>> MyCommand { get; set; }
ctor:
MyCommand = new RelayCommand<IList<VectorViewModel>>(DoSomething);
And from the Code behind XAML, I get the selected rows from a DataGrid and put them into a List.
if (xamDatagr... | stackexchange/codereview |
I would normally use absolute positioning and set the top to 50% with a negative margin-top (half of the child's height) to center vertically. In this case that will not work because the child element's height will vary.
So is there a way to vertically center a div within a div without knowing the child's height?
| stackexchange/codereview |
I need to run a simple application with c# is there anyway, and I mean anyway other than Diagnostics.Process to run a simple shell command?
| stackexchange/codereview |
I'm working on a design that uses a gatekeeper task to access a shared resource. The basic design I have right now is a single queue that the gatekeeper task is receiving from and multiple tasks putting requests into it.
This is a memory limited system, and I'm using FreeRTOS (Cortex M3 port).
The problem is as follow... | stackexchange/codereview |
I'm developping on iOS 4 and I've got this method in my appDelegate. It is called from a couple of tableviews datasource delegates. Instruments gave me these (on device and simulator)
Malloc 512 bytes, Malloc 512 bytes, NSConcreteMapTable (Foundation). The Mallocs don't show any responsible library.
Here's the method r... | stackexchange/codereview |
I am trying to bind a field of the primitive type "int" to an editor. My editor extends ValueBox<Integer>, since generics in Java can only use object types.
When I compile my application, I get the following error:
00:00:18,915 [ERROR] Found unexpected
type int while evauating path
"cadastralDivisionCode" using ge... | stackexchange/codereview |
I'm new to CUDA C, and am trying to pass a typedef'd struct into a kernel. My method worked fine when I tried it with a struct containing only ints, but when I switch to floats I get meaningless numbers back as results. I assume this has to do with alignment, and I tried including __align__ along with my type declarati... | stackexchange/codereview |
In the Windows header file WinNT.h, HRESULT is defines as follows:
typedef __success(return >= 0) long HRESULT;
Doing some research I learned that the "__success" macro is part of the Microsoft source code annotation language SAL and is defined in sal.h. But for the life of me I can't figure out what it does or how i... | stackexchange/codereview |
I'm trying to debug an access violation error in some native code, and I have the mini-dump for the crash.
When opening the crash dump with visual studio, here's what happens:
If VS can't find the symbols for my problematic native DLL, it shows the correct call stack frames (including the location in my code the error ... | stackexchange/codereview |
I'm writing a simple USB driver for our device using UMDF over WinUsb. The driver can be used by multiple application concurrently.
I need to achieve a custom locking system that the WdfDeviceLevel\WdfObjectLevel doesn't give me:
I want an atomic write-read function:
obtain a lock on the device
write a value
read a va... | stackexchange/codereview |
I have a query which performs quite ok for a limited number of ROWNUMS but once it exceeds this particular ROWNUM it performs very miserable.
Below is the query:
SELECT p.col1,pv.col1
FROM tab1 p, tab2 tv, tab3 pv
WHERE myFunc(pv.col1) = 1
AND tv.col1 = pv.col1
AND p.col1 = tv.col2
AND ROWNUM < 4500
... | stackexchange/codereview |
I've been assigned a school project in which I need to come up with as many integers as possible using only the integers 2 3 4 and the operators + - * / %. I then have to output the integers with cout along with how I got that answer. For example:
cout << "2 + 3 - 4 = " << 2 + 3 - 4;
I can only use each integer once... | stackexchange/codereview |
I am setting up a website using drupal 6 and trying to be minimalistic. I use contact form, and it works pretty well. Once the message is sent, it is redirected to the front page of my site with a message "Your message has been sent.".(with a div messages status). How can one change it like,
customize the messa... | stackexchange/codereview |
I want to try a lighting example from the book OpenGL ES 2.0 Programming Guide. In the shader they have made two structures.
struct directional_light
{
vec3 direction; // normalized light direction in eye space
vec3 halfplane; // normalized half-plane vector
vec4 ambient_color;
vec4 dif... | stackexchange/codereview |
I'm starting with DNN 5.5 development and I noticed that there exists DNN versions of standard asp web controls.
As you have standard asp control like Button or DataGrid, you also have special DNN version of this controls DnnButton, DnnDataGrid,...
So what is the benefit if I use DNN
version of controls, if I understa... | stackexchange/codereview |
I am attempting to open an application inside an iframe in sharepoint. I do not wish to share any session variable but the we application needs to be able to keep its own session variables.
The iframe and application work in firefox and not in IE 8
| stackexchange/codereview |
I have such singleton class:
package ua.org.bytes.ewt;
import org.apache.struts2.ServletActionContext;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import ua.org.bytes.ewt.dao.CategoriesManager;
import ua.org.bytes.ewt.dao.Shor... | stackexchange/codereview |
I am trying to find a list of IP addresses on a linux box. Currently my setup is a CentOS machine with a few sub interfaces for eth0 for each VLAN. I am writing a script to see if each VLAN IP address has connectivity to certain IP addresses (different IP addresses for each network).
For example:
eth0 has an IP of 1... | stackexchange/codereview |
I've implemented omniauth with my devise model, so I can authenticate using other services.
Password is not necessary anymore for my model, as users can authenticate using twitter, facebook...
Everything is working fine, but, when an user try to edit its registration, devise skip the process because the user did not in... | stackexchange/codereview |
I have created .NET APP that is supposed queries the H2 DB but at the time of "DriverManager.getConnection(DBUrl, DBUName, DBPassword);"
it gives the following error:
Error : IO Exception: "java.io.FileNotFoundException: Access to the path 'C:\Windows\System32\config\systemprofile\test.lock.db' is denied."; "C:\Window... | stackexchange/codereview |
When trying to compile a solution that contains a project with a reference to Microsoft.WindowsAzure.StorageClient.dll using the Mono compiler it fails. Why? (Google-ing provides no suitable, quick answer for this question currently).
Thanks!
UPDATE
Here's the error message coming out of Hudson:
error CS0011: Could not... | stackexchange/codereview |
When trying to execute this query my mysql server cpu usage goes to 100% and the page just stalls. I setup an index on (Client_Code, Date_Time, Time_Stamp, Activity_Code, Employee_Name, ID_Transaction) it doesn't seem to help. Now I need different way to make this query so its not so taxing on the server. Below is a de... | stackexchange/codereview |
I have a gallery which has 7 + linear layouts in each view, and I set the background drawable for 7 of these layouts dynamically, depending on data I pull from out db, the position of the gallery, etc.
I have a for loop that launches 7 threads to fetch data and fetch the information needed for the drawables to be gen... | stackexchange/codereview |
I'd been designing my website using Firefox 3.up & IE 8 as a reference. I recently happened to see it on IE 7, it looks hideous :[. I thought strict mode was supposed to solve all compatibility issues. I would tweak it for IE 7 but its going to be a hell lot of work.
What do you guys suggest? Should i tweak it for IE 7... | stackexchange/codereview |
Is it possible to call a windows common dialog and retrieve its output from within a command line application? I'd like to build most of my application to run from the console, since in my particular case it would SERIOUSLY reduce complexity; however, I would like to be able to pop up a folder selector dialog to let t... | stackexchange/codereview |
This is my current code:
public void WriteXml(System.Xml.XmlWriter writer)
{
CloseConnection();
using (Stream source = File.Open(DataBaseFileName, FileMode.Open))
{
byte[] buffer = new byte[source.Length];
source.Read(buffer, 0, (int)source.Length);
wr... | stackexchange/codereview |
I looked it up on here, but I can't seem to find answers to the questions I'm looking for. I currently make HTML5 apps for iPhones, and was going to get more into the native side, but I've read Symbian actually has the most share (near 50%). My questions are:
Is it profitable to develop for Symbian? E.g. if i made the... | stackexchange/codereview |
I have a square matrix of size 'n' which is made of numbers (1 to N) irregular but clustered.For example all 7's together, all 10's together, etc, but irregularly. Using "image and colormap" command I get a matrix where each cluster is colored differently but with square edges.. Now I want to ruffle the edges so tha... | stackexchange/codereview |
I would like to display on my main page some articles, but only those that i like, not all of the articles. I could create new content type - like 'Main" to appear only on the main page, but it wouldn't be listed under articles. What I would like to do is to stick with articles content type, but assign a new label so I... | stackexchange/codereview |
An MFC program(single document with form view) has some sub threads which access some controls on MFC GUI.
The main thread is wished to quit after all sub threads quit.
I tried notifying sub threads to quit and wait them in OnDestroy handler.
However, there is a dilemma over here.
Because sub threads might SendMessage ... | stackexchange/codereview |
I've been looking for .NET version of the ZooKeeper client and I found one.
https://github.com/ewhauser/zookeeper/tree/trunk/src/dotnet/SharpKeeper/
I was so thrilled and downloaded the source files to build a client assembly file.
but when I opened up the solution file and tried to build them all, I found some files w... | stackexchange/codereview |
var dc = new DataContext();
var myItem = dc.Items.Single(x => x.Id == 12);
myItem.LastModifiedBy = "me";
myItem.LastModifiedDateTime = DateTime.Now;
// dc.SubmitChanges(); I don't want to do this!
dc.DeleteOnSubmit(myItem);
dc.SubmitChanges(); // does not perform the update
I made a change to myItem, and I want that... | stackexchange/codereview |
I have some HTML and JavaScript code, that implements a slide show for a set of images. Now I'd like to include .txt files.
Is there anything in HTML or JavaScript that I can use to implement the same? I do not want to use anything outside of HTML and JavaScript.
| stackexchange/codereview |
I want to exec a script when a new root process starts (on Linux).
How can I simply do that ?
| stackexchange/codereview |
We've recently been experiencing seemingly random SVN checkout failures on our Hudson build system. Google search has failed me; I'm hoping the stackoverflow community can help me out :-)
We are occasionally receiving the following SVN error when our Hudson build jobs checkout source via the Hudson Subversion plug-in (... | stackexchange/codereview |
I am trying to create a dynamic table using php but needed to get the query below to work normaly but am experiencing an error which I have given below the query. I need some help to fix it.
SELECT test_case_name AS 'Test Case',
AVG( no_of_satelites ) AS 'Mean Number of Satelites',
AVG( hdop ) AS 'Mean ... | stackexchange/codereview |
I have a problem I'm trying to solve for a few days now.
We enabled the mootools 1.2 plugin in joomla 1.5 so we can use some libraries designed for mootools 1.2 .
It worked great, everything was working and we could continue our work.
Since the last time the script worked, we did some minor changes, adding squeezebox c... | stackexchange/codereview |
Has anyone seen an issue where you can export your app to an .apk file and you can install it and everything looks ok but the app never shows up in the list of installed applications. I have another app that installed and is running fine. Totally stumped by what I could be doing wrong... I think it's signed correctly... | stackexchange/codereview |
My BlackBerry code signing has started to fail with an “Error connecting to web signer from proxy”. Searching the web seems to indicate this is a problem with the BlackBerry code signing service. Is anybody else hitting this at the moment?
Wireshark indicates I am getting a response from www.rim.net with the error me... | stackexchange/codereview |
This is my main.xml that I use, and the two images in the myImage_Main and myImage_Main2 are messed up.
Is there a way to set the android:layout_width to the size of the bitmap? or do i just set it to 500px which is about the size of the screen?
Example what i want :
Scroll view -------------------------------
|
| ... | stackexchange/codereview |
Possible Duplicate:
How to implement Unit of work in MVC: Responsibility
Hi. I am developing an ASP.NET MVC web application using the following architecture:
UI -> Controller -> Service Layer -> Repository. The question here is where to expose the Unit Of Work pattern. For instance I have:
public class SomeControlle... | stackexchange/codereview |
Forgive my ignorance in this..
I think I understand that using:
extract($_REQUEST);
in a php file will convert html form inputs into a corresponding variable. For instance:
<input type="text"name="author"/>
becomes:
$author
Is that right?
However, I'm confused as to how to handle a multipart form. For instance one w... | stackexchange/codereview |
Can anyone help explain this? I am using the Populator and Faker gems to put some generated data into my database. Among other things, I generate 10,000 comments (which are from the 'acts_as_commentable' gem. All this works. However, when I go to add a new comment, I get an error saying that I am violating the primary ... | stackexchange/codereview |
I have been reading for a couple of days about Unity in MVC, and I've been trying to get this to work - hoping you guys can help.
I've set up Unity in the way described here which, from extensive googling, seems common enough. I can probably confirm that this setup is working, since on my Home Controller I can get thi... | stackexchange/codereview |
I want to give users of my iPhone app the option to publish a story to their Facebook walls. Does this require that the user be presented with a sign on screen, and then a second screen authorizing the wall post or can these two screens be somehow combined into 1?
| stackexchange/codereview |
guys I'm trying to compile my program in c but I'm getting this error (conflicting types for allocArray)?
Here is my code:
#include <stdio.h>
#include <stdlib.h>
int number(int);
char *allocArray(int);
int main ()
{
printf("Enter a number: ");
int userNumber;
scanf("%d", &userNumber);
... | stackexchange/codereview |
Context:
I am building an Add-in using visual studio 2010. One of the actions is to ensure an Interface exists on a related project. If the interface does not exist, it must be created.
Checking if the interface exists, it not the problem. Creating the interface is.
I would like to create the interface using AddNewItem... | stackexchange/codereview |
I am trying to pass an NSDictionary form a UIView to a UIViewController using NSNotificationCenter. The dictionary works fine at the time the notification is posted, but in the receiving method I am unable to access any of the objects in the dictionary.
Here is how I am creating the dictionary and posting the notificat... | stackexchange/codereview |
Is it possible to write an external application that will utilize Grail's HSQLDB instance?
| stackexchange/codereview |
Using this example. Pretend there are date fields in both forms. How would you write a custom clean for validation to compare both dates? I have added an example clean at the bottom which returns a key error on poll.
models and forms
from django.db import models
class Poll(models.Model):
question = models.CharFie... | stackexchange/codereview |
For my web application, I have several startup config values that need to be stored on a config xml file and will be loaded up when the web starts. My question is should I use an external xml or just put all those values into the web.config file? And if I use the external xml then when should I load it and where should... | stackexchange/codereview |
Normally, if you spawn a background thread or run an NSOperation on an NSOperationQueue you need to create an NSAutoreleasePool for that thread or operation because none exists by default.
Does the same rule apply to a block that is placed within a Grand Central Dispatch queue and will be run on a non-main thread? T... | stackexchange/codereview |
I kind of have a 2 part question here.
1) How can I populate my ListView so that strings are what is displayed, but when items are selected, a non-visible id value (contact id from phone contacts) is the value that is actually used?
2) I have a ListView that's using multipleChoice mode for item selections. It's popluat... | stackexchange/codereview |
Before I give a description of the problem, here is the list of technologies I am using - Excel 2010, PowerPivot Add-in, Win 7, Macros - VBA
I have created charts using multiple data sources (via PowerPivot). PowerPivot has provided Slicers and I want to print various states of the chart to separate PDFs for each value... | stackexchange/codereview |
I have deployed several Django-driven sites, mostly "concept" stuff; nothing serious. Now I'm ready to deploy a real-deal site (for my brother's medical practice), and would like to ensure that I'm doing it correctly.
My central concern, is the testing environment. I had been doing it by maintaining two separate folder... | stackexchange/codereview |
Yes i am having an normal output from the database of a message, with this:
echo nl2br($show["status"]);
I am in a huge risk, as you can use html, e.g if you write <h1>HAHA</h1> it turns out in html. if i do <?php echo "HAHA"; ?> nothing gets output, so i think it runs the echo. How can i be most safe, and strip every... | stackexchange/codereview |
I'm trying to migrate our reporting from Crystal report to MS Reporting Service. In the Crystal Report report designer, I can organize sections of the report, including inserting sections, adding suppress conditions. Please kindly advise how can I achieve those in MS Business Intelligence Studio (built in Visual Studio... | stackexchange/codereview |
I was just reading the docs for PHP's exit construct.
It says you can pass an integer (0-254) which will become the exit code...
exit(5);
Is this only useful when running from PHP under CLI? Can Apache use the error code for anything? Will PHP running normally always use exit code 0?
Thanks
| stackexchange/codereview |
Trying to pull info from one JSON datafeed and use that to make another API call, returning a second JSON string.
I am not able to make the second call properly.
Please note that my total JSON and JQUERY experience is about 4 days!
<HTML>
<head>
<script type="application/javascript" src="jquery-1.4.3.min.js"></script... | stackexchange/codereview |
I have an NSMutableArray stored in NSUserDefaults. The mutable array is properly edited and the results of the edit can be viewed with:
NSLog(@"%@", [[NSUserDefaults standardUserDefaults] dictionaryRepresentation]);
However, when I quit and relaunch the application, the user defaults are back to their original form.
I... | stackexchange/codereview |
So suppose I have a table named categories...it contains...well...categories
table categories contain fields 'id', 'name' and 'parentID'
Table Categories:
id name parentID
1 cat1 null
2 cat2 null
3 cat3 null
Further it also contains subcategories that are children categories of the categ... | stackexchange/codereview |
I need to check if the item is in datastore before I update it.
I have 2 lists: UNIQUES = ["B","K","V"] and COUNTS = [5, 10, 3]
This is the model:
class Rep(db.Model):
mAUTHOR = db.UserProperty(auto_current_user=True)
mUNIQUE = db.TextProperty()
mCOUNT = db.IntegerProperty()
mDATE = db.DateTimeProperty(... | stackexchange/codereview |
I write a servlet and this servlet must to be instanced many times in the same server.
How to do that ?
Is that some alias or parameter to define many "web servers" from the same servlet (with different parameters)
Thanks for your help
Thierry Vorms
| stackexchange/codereview |
Is there a way to render the contents of a UIView as a texture with OpenGL in iOS? Or the contents of a CGLayer?
| stackexchange/codereview |
Using an existing textFlow inside a Spark RichEditableText and wants to paste new text into this with the existing text format (ignore paste format).
Having 2 major problems
- The format
When pasting new text I want the exact same format, gets different fontsize in lines with no text.
- line breaks
Problem when importi... | stackexchange/codereview |
i have the following html code:
<select name="drop1" id="Select1" size="4" multiple="multiple">
<option value="1">item 1</option>
<option value="2">item 2</option>
<option value="3">item 3</option>
<option value="4">item 4</option>
<option value="0">All</option>
</select>
this code is available i... | stackexchange/codereview |
I am using blockui and jquery 1.4.2 to show a loading image when a particularly intense js function starts and am using $.unblockui to unload the loading image at the end of the function. works pretty smooth in ff, chrome, safari..
The issue I am facing in ie6 and ie7 is that, on the start of the js function, the loadi... | stackexchange/codereview |
heya, so I'm looking for a regex that would allow me to basically replace a newline character with whatever (eg. 'xxx'), but only if the newline character isn't within textarea tags.
For example, the following:
<strong>abcd
efg</strong>
<textarea>curious
george
</textarea>
<span>happy</span>
Would become:
<strong>abcd... | stackexchange/codereview |
I have a webpage that has JavaScript in it. The script contains a method that updates the webpage. I also have a java UDP server. When I get some parameters from a client, I want to call the method in the javascript to update the page.
Is it possible to call methods in Javascript from Java source code? Any pointers?
Th... | stackexchange/codereview |
Any Java tutorial that resembles Mark Pilgrim's approach for DiveIntoPython?
| stackexchange/codereview |
I need to get the full path from a PID.
I've checked this question C++ Windows - How to get process path from its PID
and I wrote the following code:
function GetFullPathFromPID(PID: DWORD): string;
var
hProcess: THandle;
ModName : Array[0..MAX_PATH + 1] of Char;
begin
Result:='';
hProcess := OpenPro... | stackexchange/codereview |
How do I display a numeric keyboard/pad on the iphone or ipad?
How can I display it in a popoverview only and not the standard way (at the bottom of the device)
| stackexchange/codereview |
How can i pass a dict which contain fields to update a Django model?
This is not to create an object, but to update it.
example:
obj = Object.objects.create(index=id, **fields)
| stackexchange/codereview |
I want to execute a task every 2 hours. Python has a Timer in Threading module, but does it meet my needs? How do I generate a proper Timer myself?
| stackexchange/codereview |
When viewing colorbox in chrome, it loads fully on the first load of the page and then when I refresh the page the display cocks up:
http://img203.imageshack.us/img203/4474/censornetissue.jpg
Any clue why this could be happening?
It works fine after if I clear the cache.
Here is the URL for the page:
test.webforma.co.... | stackexchange/codereview |
I have an SQL script that connects to another database using "create database link", and copies some data.
Should this database base link be dropped or closed after I am done using it?
(Say, assuming that I probably won't be needing it again).
What's the best practice?
I am hearing some conflicting answers on my team... | stackexchange/codereview |
Introduction
As part of a larger program (related to rendering of volumetric graphics), I have a small but tricky subproblem where an arbitrary (but finite) triangular 2D mesh needs to be labeled in a specific way. Already a while ago I wrote a solution (see below) which was good enough for the test meshes I had at the... | stackexchange/codereview |
While designing (and then implementing) a layered application:
Is it correct to use the same ORM objects accross all layers? (which would go against encapsulation).
Or the presentation, business and data layer should each have their own objects? (which would lead to lots of code repetition).
e.g. (just to illustrate th... | stackexchange/codereview |
This is something I'm writing using the Template Toolkit in Perl, but it's more a generic algorithm problem. My basic problem is that given a data structure like this:
my @array = (
[qw /00 01/],
[qw /10/],
[qw /20 21/],
[qw /30 31 32 33 /],
);
I need output like this (simplified for illustration):
<0... | stackexchange/codereview |
I'm trying to write an exe that also exports functions which can be called with rundll32. Is this possible and if so, why isn't it working like this?
I closely followed Microsoft's advice on this.
#define RUNDLL32(func) extern "C" __declspec(dllexport) void CALLBACK func(HWND hWnd, HINSTANCE hInst, LPSTR lpszCmdLine, i... | stackexchange/codereview |
Is there a way to get the Timezone given the name of a Country? I use getCountryName() in Maps to get the name of the Country.
| stackexchange/codereview |
What version/dialect/implementation of LISP is this meant to run on?
(I do understand that the book is written in Common LISP (as specified in the introduction) and that it predates the 1994 CL standard).
Split question into two to make it clearer.
| stackexchange/codereview |
How do I modify this code and pass msg string value to the server? I don't want it to print any character on the console. On my server, I receive a Null value.
import java.net.*;
import java.io.*;
public class SocketClient {
public static void main(String[] args) {
// Create a socket without a timeout
String ... | stackexchange/codereview |
I would like to know the best way of implementing automatic login to my web site. What I mean by automatic is this:
I've already signed into Google. I now go to my web site and its login page. Instead of clicking on the link to login with Google I would like the web app to detect that I'm already logged into Google and... | stackexchange/codereview |
I'm developing a web app with asp.net mvc 2. This app, has a controller with some asynchronous operations that return json or ajax... I call it by jquery and works fine!
My script is on the MasterPage, so this operations can be called by any View that inherits from this MasterPage.
My question is, How could I know ... ... | stackexchange/codereview |
I'm using mapnik in my django app to display esri shapefiles on a map. When a user clicks on an object (polygon, point or line), a popup should appear with info on that particular object.
I'm able to search polygons by using the function query_point:
mapnik_map = mapnik.Map(400, 400)
mapnik_map.layers.append(layer)
ma... | stackexchange/codereview |
I have almost exactly this problem. I say, almost exactly because the answer that worked for this gentleman did nothing whatsoever for me. I can open my own database and see all of the lovely RS data sitting there staring at me but the actual Reporting Services installation still can't. This all came about because of p... | stackexchange/codereview |
I have a strange problem. I want to turn off the auto generating of my proxies in Doctrine 2. I found this line of code that should do (and does) the trick:
$config->setProxyDir(APPPATHSYSTEM."/proxies");
$config->setProxyNamespace('Proxies');
// Auto generate proxies for development
$config->setAutoGenerateProxyClass... | stackexchange/codereview |
I'm using nhibernate and have an issue when some of objects are null. ie
Region is null and i get a null ref when i go userProfile.Region.Id
Of course throughout my app i could do something like
var regionId = (Model.UserProfile.Region != null) ? Model.UserProfile.Region.Id : 0);
But i think ideally i would like null ... | stackexchange/codereview |
In my project I am binding to an XML file. There are several bindings: one to textBox and one to a list and one to a UserControl. All apart from the UserControl works, but in the output I get error for all 3 bindings rather than 2.
The error looks like this:
System.Windows.Data Error: 43 :
BindingExpression with XPa... | stackexchange/codereview |
Hey I am trying to choose option from one site with javascript. No luck, I have tried couple of methods, but none seem to work. In this site http://www.finnkino.fi/movies/maxim_helsinki there is dropdown menu which says Tänään, 13.11.2010. I need to change to to another value from the menu with javascript. Help is high... | stackexchange/codereview |
it has always been my practice that when ever i use images i name them like
walls_ico , bu_hover
so when i give paths they go like
<img src="images/walls_ico.ico" />
<img src="buttons/bu_hover.png" />
UNTIL now when i am on a project where users upload files...
i was wondering is it okay to have spaces between file an... | stackexchange/codereview |
I was asked the following question in my interview yesterday:
Consider a Java or C++ array say X which is sorted and no two elements in it are same. How best can you find an index say i such that element at that index is also i. That is X[i] = i.
As clarification she also gave me an example:
Array X : -3 -1 0 3 5 7
ind... | stackexchange/codereview |
how can i publish azure service on local iis ??
| stackexchange/codereview |
I am using PHP / curl to get a HTML into a string and then i need to extract the following data and then project a graph out of it .
The data I want looks like :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml... | stackexchange/codereview |
I am using ShDocVW.InternetExplorer class to spawn a new internet explorer object and to do some form filling stuffs(for some sharepoint works).It works fine in my own machine which has Windows 7 as the OS. But when I deployed the same thing in windows server 2003 machine, it does not pop up the internet explorer windo... | stackexchange/codereview |
Is there any way to convert a Bitmap to sepia?
I know to convert to grayScale is to set the setSaturation in ColorMatrix.
But what about Sepia?
| stackexchange/codereview |
what is the optimum OS,server, etc setup for rails production environment?
Your recommendations?
thanks
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.