instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Is it possible to add an WinForms UserControl into a WPF UserControl just using VS 2010 Designer?
| stackexchange/codereview |
I'm in the middle of implementing themes for my application right now, and everything's been going really smooth until as of late. I've been using the android:background="?thin_border" tag to provide a background for linearlayouts with items that I want visually grouped together. The problem I'm running into is when I ... | stackexchange/codereview |
I am setting the title of a UIButton dynamically using [btn setTitle:x forState:UIControlStateNormal]. Is it possible to say for instance, change the background image of that button, but reference it by its title name?
| stackexchange/codereview |
I have a table, something like
FieldsOnForms(
FieldID int (FK_Fields)
FormID int (FK_Forms)
isDeleted bit
)
The pair (FieldID,FormID) should be unique, BUT only if the row is not deleted (isDeleted=0).
Is it possible to define such a constraint in SQLServer 2008? (without using triggers)
P.S. Setting (FieldID, Fo... | stackexchange/codereview |
Here's an obscure question:
I need to be able to determine historical astrological periods (semi) accurately. I am looking for a way to calculate the start and end dates of a given zodiac sign period given a geographical coordinate and a year.
The purpose of the algorithm is to determine the possible dates of birth for... | stackexchange/codereview |
I'm trying to achieve the following in Flot and was wondering if an experienced user could offer some insight.
I'd like to replace various plot points with a graphic (not the entire series).
I'd like to remove the grid markings.
Any help appreciated
| stackexchange/codereview |
I'm trying to build a 32-bit float out of its 4 composite bytes. Is there a better (or more portable) way to do this than with the following method?
#include <iostream>
typedef unsigned char uchar;
float bytesToFloat(uchar b0, uchar b1, uchar b2, uchar b3)
{
float output;
*((uchar*)(&output) + 3) = b0;
*... | stackexchange/codereview |
Is there an easy way to determine in a large solution where a dll is being referenced the solution than using FindAll
-Rod
| stackexchange/codereview |
can anyone point me to an example that show how to pass and/or return a class from a .NET class exposed as COM. The COM consumer would be a VBScript. Also, it is possible to pass an object from VBScript to a .NET-COM exposed method? For example
[ComVisible(true)]
public class A
{
public SomeClass MethodName(Name... | stackexchange/codereview |
How do I remove the selection from the input type=file, when something is entered in the textarea. The following Jquery fails, because IE replaces the local drive and directory path to something like, C:\fakepath\file.txt.
Many thanks in advance.
$("textarea#txt_id").live('keyup', function(){
$('input[type=file]').... | stackexchange/codereview |
Question: i want to split two classes out to their own file, while avoiding circular references.
i have a unit with some classes (and some enumerations and constants). Anyone will recognize Click and Clack the tappet brothers:
unit Cartalk;
interface
type
TSolution = (solTransmission, solBrakes, solGremlins);
... | stackexchange/codereview |
For some reason my iOS UITableView is scrolling horizontally. Any ideas why this may happen?
Thanks.
Edit: It seems to be the result of repositioning the table in code with screen reorientation. So I guess the question is: how do I reposition the table and not get the horizontal/diagonal scrolling?
| stackexchange/codereview |
I have some code (which works fine) that looks something like this:
int integer = 42;
decimal? castTo = integer;
Then I wanted to do something similar with reflection, with some code that looks like this:
object value = source; // source was an int originally
var parameters = new object[1];
...... | stackexchange/codereview |
I'm going to start looking into this tomorrow when I begin my project, but could anyone point me in the right direction? (Maybe some integration code and/or a sample Pyjamas interface which uses Pinax as the backend -- all with adequate explanation, if possible? :)
Thanks!
| stackexchange/codereview |
i'm have problem with the writing TCP socket in objective c. i'm having the following error when i then to write a string to my server. some help please?
error writing to stream <__NSCFOutputStream: 0x102009f0>: Error Domain=NSPOSIXErrorDomain Code=9 "
the following are my code. Thanks inn advance
- (void)setup {
... | stackexchange/codereview |
I'm trying to use a component I downloaded from code project (here's the link). I'm trying to add it to my project by adding a reference to all 3 assemblies (dll's). I can see the components on design time. I can add them to my form but I get "The type or namespace name ..." errors when I try to run it. I tried rebuild... | stackexchange/codereview |
I am writing a program that need to store some configuration information. I thought XML would be a good choice, but I do not want to learn XML in C# from scratch.
Could you recommend good ways/classes handling this task?
| stackexchange/codereview |
When using SqlDependency & OnChangeEventHandler in .Net with SQL Server, is it possible (simple?) to discover what data has changed?
| stackexchange/codereview |
when i send json. it may be have something wrong. server does not accept request and give error 500 even i seding a json he return a error page in json. how i can check that i have 500 error in json when as result after my json is gone to server.
how i can check that server return 500 error i am talking about .NET
| stackexchange/codereview |
I am working on custom cell in uitableview and trying to add uilabels in the cell but not able to set text on it. Following is how i am trying to add the cell and also how i am adding the text
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIde... | stackexchange/codereview |
I create a GWT Tree, and I would like it to be initially displayed with open nodes. Let's take the standard Tree example from GWT javadocs:
public class TreeExample implements EntryPoint {
public void onModuleLoad() {
// Create a tree with a few items in it.
TreeItem root = new TreeItem("root");
root.add... | stackexchange/codereview |
I have run across an interesting problem. I am sending email with attachments through the NET::SMTP class in ruby through Apple's me.com SMTP servers and I am running into some funny issues.
I am trying to send a series of jpg files through the SMTP server. I am encoding them in ruby and when I send to another me.com ... | stackexchange/codereview |
I have one solution where I insert rows where I use GUIDs instead of an Identity. The Guid is generated in c#.
I have another solution where the table, indexes etc are identical, but instead of GUIDs I use identities and let Sql-server generate them.
In the later case I get a performance issue.... Ideas?
EDIT
I really ... | stackexchange/codereview |
our project runs on GWT and Java App Engine and we use the standard GWT RPC mechanism.
App engine adds log trace for each RPC call, but it just logs the servlet URL and not the called method.
We would like to add the method name to the log URL.
We have tried extending RpcRequestBuilder class, overriding doCreate and ad... | stackexchange/codereview |
Short story: I need to write a PHP script which finds the correct OS type from uname (eg: both wince and winnt would return windows). See here for more info.
Shouldn't this be a community wiki?
Yes but...see here.
How to help: If your OS is not listed below, please run this code and share your findings:
<?php
echo ... | stackexchange/codereview |
I have a httpmodule that contains a property.
The httpmodule is used in my web application. I want to set the property in the httpmodule when my application starts and not have the overhead of setting it everytime the module is called.
The value for the application is read from my app settings in the web.config.
The h... | stackexchange/codereview |
I only want to set the code to alert one when I am out of 'focus' but the alert keeps piling up if I click on the input field and out of 'focus' more than one?
http://nano-visions.net/dump2/focus/
$(document).ready(function(){
$(function() {
$('#test-form-1 *[title]').inputHint();
});
$(".input-password").... | stackexchange/codereview |
Very rusty with my Python. I have a list of Cost as strings. I'm trying to convert them to floats but when the cost is above $1000, the value is represented with a comma. float("1,000") returns an error:
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
decimal("1,000")
TypeError: 'module' ... | stackexchange/codereview |
I have app that exports data in CSV. Recently I added "Open In..." feature for opening .csv files in other apps. I would like to be able to have Numbers (on iPad) open exported files as well.
Trawling through Numbers's Info.plist, I saw that it supports four document types:
com.apple.iWork.Numbers.sffnumbers
com.apple... | stackexchange/codereview |
is there a solution to manage multiple background processes started by multiple users ? I am looking for a task scheduler/queuer. It should allow users to login, start new background processes, monitor them, and delete them.
| stackexchange/codereview |
I have write a little class to perform the download of the images by using an NSURLConnection.
The idea it's to delegate the download to this class to avoid to block the execution.
So I pass the target UIImageView (by ref) and the url to the function and start the download:
-(void)getImage:(UIImageView**)image formUrl... | stackexchange/codereview |
I'm trying to write a command in LaTeX that takes a string such as 8:00A and converts it into the number of minutes, as part of a script to draw a class schedule using TikZ. However, I'm running into some issues - it seems that LaTeX doesn't actually evaluate the contents of a command.
My command is currently:
\newcom... | stackexchange/codereview |
Hope that title isn't too cryptic. I have an array with a DATETIME object in it and I'm just trying to figure out how to echo this to a page.
["created"]=> object(DateTime)#3 (3) { ["date"]=> string(19) "2010-10-22 00:00:00" ["timezone_type"]=> int(3) ["timezone"]=> string(13) "Europe/London"
Can someone help me out?... | stackexchange/codereview |
There are a huge feature collection in C++ programming language that supply a strict control over datatypes. Frequently one would mold his code with template system to achieve the most adequate functionality while guaranteeing within it correct type preservation and flexibility in its manipulation. Less frequently enum... | stackexchange/codereview |
So i was looking that i am going to create whole new Unicode with my custom made glyph but the problem is that how to manage the Joining of letters i mean in Arabic there are lots of alphabet joined together and make a word unlike English in which each alphabet is separated from other so now my problem is that there is... | stackexchange/codereview |
Hi here i am using hibernate hbm file to all model class. Now I need to audit the details of that class. I tried to use hibernate envers. I had created a new class with @Audited annotation . Then i cofigured my hibernate.cfg.xml with my new class and Envers Configuration like <listener class="org.hibernate.envers.event... | stackexchange/codereview |
I need to rearrange all the the child elements of an XML Document underneath the first Parent (and discard all other parent info)
In the example below, I need all 4 child elements under Parent[ParentField=1] and discard Parent[ParentField=X]
<xml>
<Parent>
<ParentField>1</ParentField>
<Children>
... | stackexchange/codereview |
I have a PDF which is nothing but some form , for example, i have employeesheet as PDF form which is not editable.
i want to make this editable using any Java PDF api..
it would highly appreciated if you give me an solution.
Thanks
| stackexchange/codereview |
I've added a select box to a form partial, but unsure about how to pull the currently selected value in the database back into the select box.
Here's what I have in my partial:
<%= f.select 'status', options_for_select([['Publish', 1], ['Draft', 2]], 1) %>
I know that the last "1" is currently setting the value when t... | stackexchange/codereview |
I am trying to use Domain Driven Development (DDD) for my new ASP.NET MVC2 project with Entity Framework 4. After doing some research I came up with the following layer conventions with each layer in its own class project:
MyCompany.Domain
public class User
{
//Contains all the properties for the user ... | stackexchange/codereview |
I want to number the rows in my result set. I want some way I can have a result set of 3 records use some SQL keyword to generate a column that would read 1,2,3 for watch of the records...
I know I can make a temp table with an auto increment column but i wanted to know if there was a way I can get this back from a SQ... | stackexchange/codereview |
Can anyone please tell me what is the equivalent of sp_lock, sp_who or sp_who2 in mysql server? Basically I want to know which tables are locked due to some query and which host is holding on to those exclusive locks.
Thanks in advance
| stackexchange/codereview |
I am trying to build a filterable listing of Resumes for a Club website that I work on. My goal is to be able to a all the resumes (in PDF) in a folder on the web server. I would Then like to offer the option for a user to generate a listing of Names with associated Link to the PDF document Like
"Name ... | stackexchange/codereview |
I want to build an application written in C# that renders a webpage in a dialog.
Simple enough there are lots of tutorials on how to do this
http://www.codeproject.com/KB/cs/webbrowser.aspx
Now I want to render some PHP pages instead of static pages, mainly to configure a database (SQLIte) and add a few recored, ect.... | stackexchange/codereview |
I installed Devise today and everything works fine so far. The only thing devise seems not to offer is a 'registration#show' action, which displays the user information (instead of the registration edit page). I tried to override the registrations-controller, but get the error: 'Unknown action-AbstractController::Actio... | stackexchange/codereview |
I have experienced an odd behavior of the BackgroundWorker or the .NET framework when rethrowing an Exception in the RunWorkerCompleted event.
Exceptions occuring in the background thread are passed to RunWorkerCompleted. There I do a object temp = e.Result to rethrow the exception. Since this is supposed to happen in ... | stackexchange/codereview |
I'm creating an application from an Excel application that I've used for several years, to calculate mortgage loan details, but I'm having problems with three calculations involving MathUtilities.pow & MathUtilities.round.
Here's my app & the compile error messages that are giving me problems. I've also included my or... | stackexchange/codereview |
Is there any way I can prevent a child class from overriding a method in the base class?
My guess is that there is not, but I'm coming from the .NET world, and I'm trying to make my API as robust as possible, so any input is greatly appreciated.
class Parent:
def do_something(self):
'''This is where some se... | stackexchange/codereview |
The program I'm coding connects to another program via a network-API, and I believe it's called a socket connection. I specify the IP: 127.0.0.1, and the Port, which must match what I set in that program. Now, this works fine. But what if I want to have the program running on another computer on a network?
I have se... | stackexchange/codereview |
I have uploaded video on s3 amazonws and now I want to play these video on face book.
I am using
<fb:swf swfbgcolor="000000"
swfsrc='player.swf?file=http://s3.amazonws.com/bucketname/key&image='
imgsrc=''
width='550' height='350'/>
Does anybody know about this.
| stackexchange/codereview |
I want to make an ObjectChoice field have fixed length. But by default ObjectChoice length is based on the content length.
For example if the content is "Choice 1", "Choice Choice Choice 1", the ObjectChoice field takes a different length depending on the selected choice.
| stackexchange/codereview |
I want to make sample WinForm C# app for hunting duplicate photos on my laptop.
My question is is there some record, tag ,Exif data or anything else which is unique for JPG(photo) file.
So I can read that data put into data set and hunt for duplicates.
| stackexchange/codereview |
I am going through my first RoR tutorial and came up on an action controller routing error. I have checked my code at least 8 times, but can't figure out the issue. I'm sure this will happen again in the future. My question is, in general, how should I go about solving these errors? If it's relevant I am using RVM,... | stackexchange/codereview |
when I run the following, i get a w3c page with upload options, as though nothing has been uploaded. curl seems to be putting it up though, so i'm at a loss as to what to even troubleshoot
dylan@MAJUSCULE:/opt/lampp/htdocs/dylanstestserver$ php index.php > test.html && curl -F "uploaded_file=@index.php;type=text/html"... | stackexchange/codereview |
Given the following XMAL why is no vertical scrollbar for the ListBox which is bound to an ObservableCollection of 100 strings. If I change the height of the second row from * to something fixed like 500 then a scrollbar appears, but obviously i want the row height to be what ever is available (which is what I underst... | stackexchange/codereview |
Here 's my code snippet
import gtk, webkit
window = gtk.Window()
browser = webkit.WebView()
url = "www.google.com"
browser.open(url)
Now I wanna get the web page title, script tags inside. So how can I do that ?
The documentation is not clear at these points and I only found documentation for Objective-C and I am t... | stackexchange/codereview |
with javascript(Jquery).
Searched online, seems like it's not possible. So far I have something like:
$("#textAreaId").bind('paste', function (e) {
alert('pasting text!!!!');
var data = $("#taData").val();
alert(data);
});
but the data is empty at this stage...is there a way to capture... | stackexchange/codereview |
hi
i have a slideshow i created with jquery and jquery cyle its working fine but when i cick on refresh page all images shows on the page for while and then hide and slideshow works fine how can i fix that is this a css problem ? or its normal
| stackexchange/codereview |
I am creating sql server 2008 Agent scheduler job form sql script.
Want to Log the details if failed in some case within Job > View Histroy.
Is there any way, so we can log custom text with Job > View Histroy?
| stackexchange/codereview |
Since there are no answers to my previous question. I'm really thinking to implement a custom DB which will satisfy my requirements.
Yes I know, sounds crazy.
But what books, articles and etc. would you recommend to read?
If it does matter the requirements for my DB are following
Graph oriented - optimized for stor... | stackexchange/codereview |
If I use any ASCII characters from 33 to 127, the codePointAt method gives the correct decimal value, for example:
String s1 = new String("#");
int val = s1.codePointAt(0);
This returns 35 which is the correct value.
But if I try use ASCII characters from 128 to 255 (extended ASCII/ISO-8859-1), this method gives wrong... | stackexchange/codereview |
Is it possible to:
for k,v in kwargs.items()
if v == None or v == '' or v == 1.0 or v == False:
del kwargs[k]
without deleting the key if v == 0.0? (False seems to equal 0.0), and without deleting the keys who equal True.
| stackexchange/codereview |
i already install mysql 5 in my system and visual studio professional. and everybody work fine but how i can connect mysql database in server explore using installing connector
when i download connector for mysql i get the rar. the rar have some code but i not know how it work are anyone tell me what i do to use mysql ... | stackexchange/codereview |
I'd like to use this jQuery plugin: jQuery Tools: Overlay effect
It shows a light box in mac style with a black+white x-circle to close it. But it's on the upper right. Since my audience are Mac users, that would suck. How could I reposition that close-x icon to the left of the light box so that the usability doesn't g... | stackexchange/codereview |
What is the best way to detect when Windows power state is changing?
I need to preform some actions depending on whether the computer is going to Standby/Hibernate/Shut Down
| stackexchange/codereview |
Here's a bit of Scala code to sum the values from 1 to 9 which are divisible by 3 or 5. Why does line 5 return a Unit and not a Boolean type?
object Sample {
def main(args : Array[String]) {
val answer = (1 until 10).foldLeft(0) ((result, current) => {
if ((current % 3 == 0) || (current % 5 == ... | stackexchange/codereview |
My Scenario:
Schema name: schema1
Package name: pkg_system
procedure name: proc1
Now I am trying to create a synonyms for my proc1 as below
CREATE PUBLIC SYNONYM call_proc FOR schema1.pkg_system.proc1;
...but it gave me syntax error.
ORA-00933: SQL command not properly ended
I changed the code as below:
CREATE PUBL... | stackexchange/codereview |
In order to send appropriate response, I need to detect whether the controller action has been requested by a classic HTTP GET request, an AJAX request or a g:include tag lib.
For instance, considering the following snippet code:
class CommunityController {
def show = {
def users = getUsers()
if (/* WHAT IS T... | stackexchange/codereview |
I have a piece of code which needs to check an entity when being saved by my Repository. I have an NHibernate interceptor on the save to check this but when I call the GetGenericTypeDefinition function the code fails with the error:
[InvalidOperationException: Operation is not valid due to the current state of the obj... | stackexchange/codereview |
I've been seeing this type of url:
http://someurl.com?someid=4387&anotherid=1234&yetanother=7365456
And I've seen a modification of that url like this:
http://someurl.com/4387/1234/7365456
Also I think I've seen it like this too:
http://someurl.com/4387/1234/?yetanother=7365456
What exactly is this called? An... | stackexchange/codereview |
I'm looking for a list of helpful NetBeans shortcuts. Examples include: CTRL+clicking on a method to go to it's definition and using CTRL+Space for intellisense.
Feel free to list your favorites here or send me a link(s). FYI - I primarily use NetBeans for PHP.
| stackexchange/codereview |
Here is the table "Answers". I need to get count of QuestionNo that are "R", "W", "" for each section for given AcademicYear and TestNo. What is the best SQL query?
AcademicYear StudentID TestNo Section QuestionNo Answer
2010-2011 1 1 2 1 R
2010-2011 1 1 2... | stackexchange/codereview |
I am using the following code to change the 'Run As:' username and password for a scheduled task on a remote host.
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "SCHTASKS.exe";
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.WindowStyle =... | stackexchange/codereview |
I am fairly new to PHP and I am experiencing a problem that I can't find an answer to anywhere!!
It really bugs me...
I want to post data to a PHP script using AJAX. I am using the JS framework Prototype to do AJAX communication.
Here is the JS code:
new Ajax.Request("/ondemand/Radio.php", {
method: 'POST',
... | stackexchange/codereview |
What is the function DATE_FORMAT in SQL Server
I want to change my now date to d-m-Y h:i
How to do
| stackexchange/codereview |
I have a foreach that looks like this:
foreach ($blogusers as $bloguser) {
$args = array(
'author' => $bloguser->user_id,
'showposts' => 1,
'caller_get_posts' => 1
);
... | stackexchange/codereview |
Possible Duplicate:
API to determine whether running on iPhone or iPad
Hi,
I'd like to test the device in my application, to know wether I'm on a iPad device or on an Iphone.
is there a easy way to do that ?
thank's au lot
David
| stackexchange/codereview |
So i have this structure
<div class="accordionContent">
<form action="/make_requests" class="make_request" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" /></div>
<tr>
<td>Enter Sandman</td>
... | stackexchange/codereview |
I am having problems using the jquery validation plugin's submitHandler.
I am working within the confines of some code that I do not have access to change so I am trying to find some work arounds.
This is what I would like to do... After the form validates, when the user clicks the submit button, and it is successful ... | stackexchange/codereview |
I'm working through theForger's win32 tutorial, on two IDEs: Dev C++ and Visual Studio 2008. I try to duplicate results in both.
For this page of the tutorial, I can't seem to compile in Dev C++ (Visual Studio works fine). It's a modal dialog box. The code in question is in WndProc:
case ID_HELP_ABOUT:
int ret = D... | stackexchange/codereview |
I have a class as given below, I want to write a copy constructor for the same.
I need to create a deep copy constructor for this. following code is printing x and c properly but value of y here is garbage.
#include "stdafx.h"
#include <string.h>
class MyClass
{
public:
MyClass(int a) : y(a) {
}
MyClass(const MyCl... | stackexchange/codereview |
In order to learn silverlight on WP7 I'm playing with it around and well, I can't say I'm having sweet times here. I'm developing a simple, yet ugly Mine game (like windows's ^^).
The problem is that I'm gonna use a button for each case on the mines board, but I can't manage to find a way to preview a grid with cells c... | stackexchange/codereview |
I am trying to troubleshoot a particular 'report' that gets generated on a PHP application running on a VOIP platform (billing related). The person that asked me to do this stated "it worked before" ;)
MySQL Error thrown:
1111: Invalid use of group function
Crazy thing is, it 'worked before' but stopped after awhile, t... | stackexchange/codereview |
Like the title says, in oracle you can issue the following command in SQL*Plus:
SQL> select something from anothertable; #sql
SQL> @{/home/me/somescript.sql}; #load sql from file and execute it
SQL> do something else in script; #other sql
Without having to file->open the sql script to load it to the UI.... | stackexchange/codereview |
It is possible to automate Silverlight with PowerShell?
I want to control Silverlight, press buttons etc.
Like automation with the IExplorer:
$ie = New-Object -ComObject InternetExplorer.Application
$ie.Navigate("http://www.stackoverflow.com")
$ie.Document.getElementById("ButtonID")|foreach{
$_.Click()
}
| stackexchange/codereview |
There is a list on which an approval workflow is associated,workflow starts when an item is added.The list is having anonymous access so anyone can enter an item,but the item needs to be approved by an approver.Hence,each item will have a status(e.g. approved,rejected etc.).
Now,I am creating a visual webpart.I want to... | stackexchange/codereview |
My application let users to send files to each other. Regular users can edit their contacts, change password, etc. In addition, admin users can add/remove users and view the log of what happened. My question is how to store this log in MySQL database ?
I thought to store the log like this:
log_id time user_id act... | stackexchange/codereview |
I am developing a Google Chrome extension.
Extension shows a dialog box (jquery ui, as a div) inside any webpage, in the dialog box user can add some content [HTML content without body, without styles info].
The problem i am facing is, that the styles specified in the webpage are getting applied to the jquery dialog an... | stackexchange/codereview |
update: This is more of a maintenance issue than the normal case.
I have the following table:
CourseId StudentId
---------------------
1 1
1 2
2 1
CourseId and StudentId are composite primary key.
Let's say I wanted to update where courseid=1 to courseid=2 for some reason. This will caus... | stackexchange/codereview |
I am pretty new to Eclipse. Trying to set up to do remote debugging.
Here is situation, I am connecting to remote machine running Linux, I am running Windows.
1) I have installed all the necessary tool for Eclipse, and was able to connect to Linux machine.
2) Remote machine has gdbserver
linux1[1]% gdbserver
Usage: g... | stackexchange/codereview |
I have a question about searching in SQL. We have a piece of code below responsible for searching a set of content within our site. When we wrote the StaticContent algorithm, it worked fine. After adding ContribContent (2nd and 4th par) it does not appear to work. Do you have any idea why?
Thanks so much!
ALTER PROCEDU... | stackexchange/codereview |
I have below C# code which I converted from Java. In this I am getting the error "does not implement inteface member System.Collections.IComparer.Comparer(object,obkject)"
Kindly help me to solve this error
internal class CompositeComparator : IComparer
{
private IComparer major;
private IComparer minor;
pu... | stackexchange/codereview |
I have a C# application. Currently all modules are written in .NET 2 and it uses some executables that have linux ports. So I was wondering what toolkit should I use on Windows and MacOS to compile it max easy on both? On Windows Some guys told me that on Windows I can use WinForms, but on Mac I must use MonoMac, but t... | stackexchange/codereview |
I am using a Popup in the control template of a MenuItem.
However, I don't know in advance how many items will be in the menu item. As a result, the popup might not fit on the screen and some items might not be accessible.
My solution is to set MaxSize to, say, 500, and wrap the ItemsPresenter in a ScrollViewer.
Howeve... | stackexchange/codereview |
Not sure if "page variable" is the right word, but i'm thinking something like this:
using System;
.
.
.
namespace whatever
{
public partial class Submit : Page
{
int id;
protected void Page_Load()
{
id = getid();
}
.
.
.
Obviously I will be using id at some point later (... | stackexchange/codereview |
This is my code but i can't fill my string with the value put in by the user.
I've tried a lot of solutions from other sites but it won't work.
package app.android.Mel
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button... | stackexchange/codereview |
What I need to do is some data between 2 databases. The source can be anything (comma separated file, xls file, any database, ...), the destination is MS SQL Server.
I do not need to sync all data, I just need to sync particular tables.
Example:
I need to sync accounting Software (runs on PostgreSQL) CUSTOMERS table wi... | stackexchange/codereview |
can anyone please help me with full expmple of System.ComponentModel.dataAnnotations.CustomValidation.
This is my scnario
I have EventMetadata & EventAttributeMetadata class. In EventMetadata i have Startdate & Enddate Property & In EventAttributeMetadata i have HoldOutdate Propety. I want perform following validatio... | stackexchange/codereview |
In a dropdown how to get icons along with text and once we select any of the index from the dropdown i want that icon also be selected and to be displayed on that dropdown header
| stackexchange/codereview |
I have loaded a progressBar from:
<?xml version="1.0" encoding="utf-8"?>
<ProgressBar xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+android:id/progress_small" style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
On differen... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.