instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to parse the following XML
XmlElement costCenterElement2 = doc.CreateElement("CostCenter");
costCenterElement2.InnerXml =
"<CostCenterNumber>2</CostCenterNumber> <CostCenter>" +
"G&A: Fin & Acctng" +
"</CostCenter>";
but I found XML Exception
An error occurred while parsing EntityName.
| stackexchange/codereview |
When ever i try to open a file using MonoDevelop i get this message
System.ArgumentException: Illegal characters in path.
at System.IO.Path.GetExtension (System.String path) [0x00000] in :0
at MonoDevelop.Projects.Formats.MSBuild.SlnFileFormat.CanReadFile (System.String file, MonoDevelop.Projects.Formats.MSBuild.M... | stackexchange/codereview |
Something I'm confusing.
The Javascript is going to produce the following JSON data.
{type:"book" , author: "Lian", Publisher: "ABC"}
{type:"Newspaper", author: "Noke"}
This is only an example, actually I've got more than this.
Since I have common fields between different JSON data, so I don't know is it possible ... | stackexchange/codereview |
I can't exit or terminate children processes sending a signal.
Could you please tell me what I'm doing wrong in this code:
//###################################### INVERTER.C (main)
#include <semaphore.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/wait.h>
#include <sys/time.h>
#in... | stackexchange/codereview |
So I've got a grid that needs to change it's margin based on flag in the VM.
Seems like datatriggers is the right way to handle this.
So I set this up:
<Grid x:Name="myGrid" Grid.Row="1" Margin="30,0">
<Grid.Style>
<Style TargetType="Grid">
<Style.Triggers>
<DataTrigger Binding="... | stackexchange/codereview |
How do I make a Leaderboard on roblox?
| stackexchange/codereview |
I'm developing an application in 3D in a win 7 64bits machine, in visual C++ 2008. All runs correctly. When I check this application in a clean machine in a VMWare virtual machine with XP 32bits (hardware 3D activated) or in a machine of a friend of mine, the application fails.
The behavior of the application is diffe... | stackexchange/codereview |
I am unable to get AST of
" risk & factors | concise" | item 503
using following grammar
grammar BoolExpRep;
options {
output=AST;
}
tokens {
MultiWordNode;
}
start
: exp EOF!
;
exp
: atom (expRest^)?
| '('! exp ')'! (expRest^)?
;
expRest
: OPER exp -> ^(OPER exp)
| '~' WORD exp -> ^('~... | stackexchange/codereview |
I've very new at WCF, and I'm creating a prototype application to learn, which might turn into a commercial application. I understand the very basics of WCF, and I have my application WCF functional, at a basic level.
What are some tips experienced WCF users can give regarding pitfalls and steps I can take to make the ... | stackexchange/codereview |
I am trying to retrieve an Image file from DB(MySql) and writing it to the rtf File.
Myquery is looks alike
select
FirstTable.name.FirsTable.age,
ifnull(
select
secondTable.object
from secondTable
where secondTable.Id=Firstable.Id
) As pic
When i execute the query everything is coming prop... | stackexchange/codereview |
Is there a complete list of regex escape sequences somewhere? I found this, but it was missing \\ and \e for starters. Thus far I have come up with this regex pattern that hopefully matches all the escape sequences:
@"\\([bBdDfnreasStvwWnAZG\\]|x[A-Z0-9]{2}|u[A-Z0-9]{4}|\d{1,3}|k<\w+>)"
| stackexchange/codereview |
I have to show 2 articles in a custom template page in my wordpress blog, but this code show nothing.
$myposts = get_posts("numberposts=2&category=3");
foreach($myposts as $post) : the_content(); endforeach;
but if I try to print_r($myposts); I can say that there is an array..how can i solve this problem?
thanks a ... | stackexchange/codereview |
I have some weird problems when I try to add some additional languages to my rails application. I guess that it has something to do with character encoding, but I have no clue where to start looking.
irb(main):001:0> I18n.available_locales
=> [:en, :se]
irb(main):002:0> I18n.available_locales.include? :en
=> true
irb(... | stackexchange/codereview |
Can someone tell me if it's possible to do this with my WCF-based oData feed, and let me knlow what to search for or how to get started?
1) Authenticate - I'd like to make sure that the oData service is only accessed by someone who has already authenticated using the ASP.NET membership system
2) Filter - Suppose I'm ... | stackexchange/codereview |
I want my data structures to be custom formatted.
e.g. I have a DS
Address {
string house_number,
string street,
string city,
long pin_code,
}
Now, I want to associate certain conversion specifiers with each of these fields.
e.g. house_number -> H
street -> S,
city -> C,
pin_code -> P
... | stackexchange/codereview |
I want to use a mocked service in an enterprise project. So can I use Visual Studio to fetch data, get response from mocked service, when I have no connection to the actual service?
When I try this I get the error, "No connection could be made because the target machine actively refused it"
Or are you have another sug... | stackexchange/codereview |
Hi I have any form with nested form, for example
<% form_for :main do |f| %>
trying to insert code here
<% fields_for :nested do |nested_form| %>
<%= nested_form.text_field :description %>
<% end %>
<% end %>
And then I am trying to insert anything to a main form, nested form doesn't produce any output. It o... | stackexchange/codereview |
Until now I have been making my own 1024*1024 sprite sheets by placing the images in an 64 x 64 grid to help to identify easily the position and size of each sprite.
Needless to say, it works but i'm wasting a lot of space.
Is there any kind of tool to help me take separate sprites in .png format and generate sprite s... | stackexchange/codereview |
<mx:Script>
<![CDATA[
//Import classes so you don't have to use full names.
import mx.managers.DragManager;
import mx.core.DragSource;
import mx.events.DragEvent;
import flash.events.MouseEvent;
// Embed icon image.
[Embe... | stackexchange/codereview |
Is there really a performance difference between Standard & Enterprise Edition 2005 if I am not using any of the Enterprise Features ?
| stackexchange/codereview |
How can I get system display name of a file, directory, or folder as it would be displayed in a system file browser? For example original CD is named somehow and I want to do little copy protection
| stackexchange/codereview |
I have following table:
ID Data
1 A
2 A
2 B
3 A
3 B
4 C
5 D
6 A
6 B
etc. In other words, I have groups of data per ID. You will notice that the data group (A, B) occurs multiple times. I want a query that can identify the distinct data groups and number them, such as:
DataID Data
101 A
1... | stackexchange/codereview |
I have a struct:
struct KeyPair
{
int nNum;
string str;
};
Let's say I initialize my struct:
KeyPair keys[] = {{0, "tester"},
{2, "yadah"},
{0, "tester"}
};
I would be creating several instantiations of the struct with different sizes. So for me... | stackexchange/codereview |
I'm performing some calculations and inserting the result into a database.
My problem is, that the answers I'm getting seem to be rounding down rather than up. This might not seem important but over the course of a lot of sales, the cents start adding up!!
Decimal pubCut = rrp * (percentageCutD / 100);
Decimal retCut =... | stackexchange/codereview |
For this simple code:
void main(){
char buf[12];
buf[11]='\xff';
puts(buf);
}
I use gdb to debug this code and get its stack info like this:
0xbffff480: 0x40158ff4 0x40158ff4 0xff0494dc 0x40158ff4
0xbffff490: 0x00000000 0x40016ca0 0xbffff4f8 0x40045de3
0xbffff480 is where "... | stackexchange/codereview |
I can't seem to figure out how to convert ISO-8859-1 characters, such as é, to it's entity number being é.
I want to be able to take a string, such as: "Steel Décor"
and have it converted to: "Steel Décor"
| stackexchange/codereview |
I want to create a JTabbedPane, add a JPanel to everyone and then add something to the JPanel:
private void initTabbedPane(JTabbedPane tp)
{
System.out.println("FestplattenreinigerGraphicalUserInterface::initTabbedPane()");
// Init Tab-Names
Vector<String> tabNames = new Vector<String>();
tabNames.addE... | stackexchange/codereview |
Utilising a number of different SQL "diff/comparison" tools I am getting differences reported for stored procedures and tables which are identical (in everything but the case of certain keywords - bear with me (the expectation is for the case to be the same)) between a database living on 2 different database servers.
... | stackexchange/codereview |
I am a trainee software engineer, I did self study on collection and generics and reported to my TL. He suggested me to study these things also.
Specially in generics how memory is defined for generic type, how IL and CLR works for generic?
Performance of generic over collection, or over boxing unboxing?
I googled but ... | stackexchange/codereview |
i have two kind of database in different server. And the script below is to make DB connection:
//DB 1
define("DBNAME","xx.xxx.xx.xxx:D:\DATABASE\OCS DATA.FDB");
define("DBUSER","USER");
define("DBPASS","USER");
$dbh = ibase_connect(DBNAME,DBUSER,DBPASS) or die(_ERROR15.": ".ibase_errmsg());
//DB 2
$dbc=mysql_conne... | stackexchange/codereview |
I have a matrix A=[1-x, 2;1 3-x]. How do I define this in Mathematica so I can do things like
SchurDecomposition(A[1])
and
f[x_]:= maximum eigenvalue of A[x_]; then plot f for x in [-1,1].
Thanks in advance.
| stackexchange/codereview |
I am trying to integrate ActiveMerchant in my rails app. I have certain plans that if subscribed limit the user access. As you all guyz might be knowing what a subscription based app is, I am not going into explaining my app. Please suggest me some examples for making this happen. I have already viewed the railscasts e... | stackexchange/codereview |
Having a really baffling issue with permissions, WordPress and theme files.
I have a fresh install of WordPress and tried uploading the theme I made for my client. It uploaded fine but it doesn't show up in the Manage Themes menu. I checked everything was uploaded and it was. Checked permissions (even set them to 777 a... | stackexchange/codereview |
Hi I have a question regarding simple Javascript function. Below is the code its easily visible that when a user clicks on the click button I want to switch classes I mean when the page loads "This is para" needs to be displayed then when the user clicks on click button the text needs to change to This is updated. but ... | stackexchange/codereview |
After doing research I have discovered that Google Maps (on a webpage) will not work with most or all of Blackberrys. It appears that this is a result of the lack of significant Javascript on the Blackberry browser.
Is there any code that I can use to detect whether the maps are being displayed on a device and put up a... | stackexchange/codereview |
I have set up an Amazon EC2 instance. By default my apache is running as user apache of the group apache.
I created new ftp user test and uploaded my files to /home/test/public_html. I then configured the virtual host DocumentRoot to point to my project, residing in /home/test/public_html.
When the directory is owned b... | stackexchange/codereview |
I am making a Poker game in Android, I have made some TextViews and ImageViews to show on the cards of player and computer and the Community cards..
Now the problem is that when a player takes its turn after that it calls a method of call_computer and all the implementation of the computer executes but there is no del... | stackexchange/codereview |
I have an Android Service which copies files to an ftp server.
While it is doing that, I want to send feedback to my Activity so the user knows what happens.
I tried implementing it using the RemoteMessengerServiceSample code, but I have a problem ... All messages I send during the ftp transfer arrive at my Activity th... | stackexchange/codereview |
How to add hyperlink value with $ sign in C# Infragistics ultragrid
| stackexchange/codereview |
I am trying to Hook Cocoa API.
I know cocoa provides a public api for hooking, so it’s possible to hook the system function and retrieve information like the current font settings of the context.
I am also trying to hook that draw api from cocoa.
Can somebody point me to details on how it can be achieved. Or some refe... | stackexchange/codereview |
I'm trying to crate a custom action filter attribute. And some where, I need facilities, such us TempData[key] and TryUpdateModel... My custom attribute class deriving from the ActionFilterAttribute, I can access both below methods.
public override void OnActionExecuting(ActionExecutingContext filterContext)
{
}
public... | stackexchange/codereview |
i have retrieved Data from xml file and displayed it in gridview using C#, but i want to show all data including the inner tags here is my C# code:
XmlDataDocument xmlDatadoc = new XmlDataDocument();
xmlDatadoc.DataSet.ReadXml("D:\\ab.xml");
DataSet ds = new DataSet("Books DataSet");
ds = xmlDatadoc.DataSet;
dataGridV... | stackexchange/codereview |
I am trying to update an ObservableCollection that is data bound to the UI. I know that to do this I need to use Dispatcher and BeginvInvoke(), and to make it so that the UI doesn't freeze up when I do so, using a BackgroundWorker is a good way to go about it. In any event, I have all this, compiled and running, but no... | stackexchange/codereview |
At my work I'm using C#, Microsoft SQL Server, Windows Server and Microsoft Visual Studio. As you can see I'm totally in the Microsoft world.
But i want to broaden my development knowledge and start with java again. I had java classes at school, but my first development job was in .Net VB and till then I'm stuck in th... | stackexchange/codereview |
I was trying out jquery with this example:
$(document).ready(function(){
$("button").mouseover(function(){
$("p#44.test").css("background-color","yellow");
$("p#44.test").hide(1500);
$("p#44.test").show(1500);
$("p#44.test").css("background-color","red");
});
});
I exp... | stackexchange/codereview |
I know how to disable them on specific controller:
$this->_helper->viewRenderer->setNoRender();
$this->_helper->layout->disableLayout();
And I know how to disable renderer in the bootstrap:
Zend_Controller_Front::getInstance()->setParam('noViewRenderer', true);
Is there any chance to disable layout in the bootstrap?
| stackexchange/codereview |
I am having one array where i am fetching data from database for some specific value,and hence the key where that particular value is not there,it is fetching null value in the array.
Now,my question is how can i eliminate that null value from the array? I tried to fetch the nsarray value to nsstring and then to anothe... | stackexchange/codereview |
I have a menu bar in a spark Panel, I want to select one of the menu items by using Actionscript I don't know how to target one of the items. Here is an extract from my component code.
<?xml version="1.0" encoding="utf-8"?>
<s:layout>
<s:BasicLayout />
</s:layout>
<fx:Script>
<![CDATA[
import events.C... | stackexchange/codereview |
My program outputs strings like "Wzyryrff}av{v5~fvzu: Bb``igbuz~+\177Ql\027}C5]{H5LqL{" and the problem is the escape codes (\\\ instead of \, \177 instead of the character, etc.)
I need a way to unescape the string of all escape codes (mainly just the \\\ and octal \027 types). Is there something that already does thi... | stackexchange/codereview |
debian vps with gigatux.
using django/python with mod_wsgi and im using virtualenvs as i hope to be hosting a few different sites which may well be at different levels.
im having an issue getting the site running, right now i can't even do a syncdb as it refuses to import the django package that is inside the site-pack... | stackexchange/codereview |
I'm using python with urllib2 & cookielib and such to open a url. This url set's one cookie in it's header and two more in the page with some javascript. It then redirects to a different page.
I can parse out all the relevant info for the cookies being set with the javascript, but I can't for the life of me figure out ... | stackexchange/codereview |
I want to write an open-source tool for use by developers. I want to eliminate entry barriers, so if they like the idea, they just get the tool and start playing with it.
In particular, I don't want an "Oh, should I also install 200Mb of ThatLanguage runtime libraries? Oh, so they don't build on my latest version of Li... | stackexchange/codereview |
$output = "ALLWILLBEASCII";
foreach ($output as $name => $value) {
echo mb_detect_encoding( $value );
}
How to convert from ASCII to UTF-8 in PHP?
| stackexchange/codereview |
I need to check the type of a mock object and want to get the underlying type. For instance, for an object such as Mock is there anything on here I can call to get the type, "Foo"? I am using moq.
Mock<Foo> myFoo = new Mock<Foo>
myFoo.Object.?
myFoo.?
| stackexchange/codereview |
I have created a Rich Text Editor Web application using document.designMode="on" in an iframe.
I want the selection of text to work but want the drag and dropping of text to be disabled.
I tried this:
evt.dataTransfer.effectAllowed="none";
evt.dataTransfer.dropEffect = "none";
This works fine in Firefox but it doesn't... | stackexchange/codereview |
I have implemented a paging routine using skip and take. It works great, but I need the total number of records in the table prior to calling Take and Skip.
I know I can submit 2 separate queries.
Get Count
Skip and Take
But I would prefer not to issue 2 calls to LINQ.
How can I return it in the same query (e.g. us... | stackexchange/codereview |
I created class ChImage from UIImage
@interface ChImage : UIImage {
@public
int ChannelId;
NSString *ChannelName;
NSString *Description;
}
@property(nonatomic, retain) NSString *ChannelName;
@property(nonatomic, retain) NSString *Description;
@end
@implementation ChImage
@synthesize ChannelName;
@synt... | stackexchange/codereview |
I'm trying to write a Mysql Stored Procedure that returns two values after inserting a record. I want it to return the auto-generated ID and the value of one column. How would I go about doing this? Here's what I got so far:
delimiter //
drop procedure if exists insert_car//
create procedure insert_car(make VARCHAR(20... | stackexchange/codereview |
A Graph DB that can handle around 100k-1M nodes
We need nodes that can have different types and attributes
We need edges (associations between nodes) that also can have different types and attributes
Transactional support (all or nothing commits to DB)
History of changes to elements (add/remove element, add/remove edg... | stackexchange/codereview |
I use C# to write a (hypothetical) application - online store.
I have a database of products, each product has following information associated with it:
Product Number (required)
Name (required)
Price (required)
Rating (optional)
Sold Quantity (optional) -- this is total sale of this product
I have 4 pages that s... | stackexchange/codereview |
i created a delegate for a class
@protocol gameDelegate <NSObject>
@optional
-(void)gameStarted;
@required
@end
now in my game object i called this method:
[self.delegate gameStarted];
so now, if i initiate this object anywhere and set the delegate everything works fine until the gameStated gets called, because its n... | stackexchange/codereview |
I have a very specific question: is the following code possible in one line? Or is there a beter way to do the same?
$key = rand(1,100);
$temp = 'GetObjects'.ucfirst($key).'Array';
$objects = $this->module->$temp();
Like this:
$objects = $this->module->'GetObjects'.ucfirst($key).'Array'();
| stackexchange/codereview |
In Xcode, there is a preferences option to sort the Editor Function pop-up alphabetically which is great. However, this does not take into consideration the #pragma mark headings which also appear in this list. It would be great to have this list sorted alphabetically first by #pragma heading, then by method. Is this p... | stackexchange/codereview |
I'm trying to have one jQuery effect/animation run after another. I've tried this:
$('#myDiv').animate({'left':'+=300'},1000).delay(2000).animate({'left':'-=300'},1000);
EDIT:
This actually does work- just a pasting mistake on my part. Chaining effects automatically creates a queue, according to the docs, which is w... | stackexchange/codereview |
I'm running something like this to select all div elements in DOM (and this is good for me):
var $mySelection=$("#wrapper").find('div').not("#main-content, #etc")
How would I select all div elements in the DOM after a certain div instead?
| stackexchange/codereview |
This may sound stupid but for some reason I can't find anywhere on Eclipse that lets me generate blank .aidl files... Does anyone know how?
| stackexchange/codereview |
I want to create call accept and reject buttons looks similar to default buttons and having functionality same
pls. answer it
| stackexchange/codereview |
I have the following line of code which activates the breakpoint
[mapView addAnnotations:grabinstance.itemArray];
This crashing randomly. grabinstance.itemArray is fully populated always and is never changing at the time due to this bit of code only being called once the array is full. This particular time this was ... | stackexchange/codereview |
I have a form with a panel in which I want to display an animated 3D scene using XNA. What's the best way to have this panel continuously repainted?
I'm currently thinking about adding a System.Windows.Forms.Timer to the form and adding an event handler to Timer.Tick which updates my 3D scene and calls Invalidate on th... | stackexchange/codereview |
How can I make GtkBtton round in shape?
| stackexchange/codereview |
A Python extension I've written requires root access to do a single hardware initialisation call. I'd rather not run the whole script as root just for this one call in my extension, so I would like to write a wrapper to do this initialisation before dropping to user privileges and running the actual script.
I intend fo... | stackexchange/codereview |
I want to start creating websites again, but I've been out of the HTML scene for a while now. I was just wondering if this is a good skeleton for a website. And if not, what should I change, add and/or remove?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-tr... | stackexchange/codereview |
I have a problem on taking the snapshot of html document running on different browsers.
I want to take snapshots of the web page running in different browser (Chrome,Fire Fox,ie etc) for browser comp ability test but i am getting the problem with html document loading time and here is my code,
private void button1_Cli... | stackexchange/codereview |
I'm using gnuplot to plot time-dependent data.
The samples are taken every 5 minutes or so and I have 200 samples.
I plot these with the x axis formatted to
set format x "%H:%M"
Ideally, I'd like to print the date whenever the x-axis crosses midnight... but only when it crosses midnight. Something like:
22:00 22:30 ... | stackexchange/codereview |
I am writing an application and I don't understand a point. I am trying to receive data from a specific client. In a TCP socket, accept returns to you an fd number, so you can communicate over this fd number with a specific client.
In recvfrom, anything cannot specify that receive data from that client. It receives da... | stackexchange/codereview |
Is it possible to cast an enumerated-key dictionary to an integer-key dictionary? (Or a copy constructor would work fine for what I'm doing as well.) In other words, something that looks like:
Dictionary<int, string> NewDictionary =
(Dictionary<int, string>)OldDictionary<MyEnum, string>;
(Yes, I know that syntax i... | stackexchange/codereview |
I'd like to understand what happens when the size of a dynamic array is increased.
My understanding so far:
Existing array elements will remain unchanged.
New array elements are initialised to 0
All array elements are contiguous in memory.
When the array size is increased, will the extra memory be tacked onto the e... | stackexchange/codereview |
I have a SVN repository on a remote server. I regularly update it with commits from my local dev machine.
I accidently deleted a sub-folder of the repository on my LOCAL machine (not on the server). Now I have tried all things to get the folder from repository on my local machine, but for some reason it does not seem t... | stackexchange/codereview |
When i edit** permalink structure of a page in edit page link, it throws
"The page isn't redirecting properly" when check in front end.
**changed parent page name in the link. Other pages are working fine even when the parent page name is changed
But when i preview the page the page is displayed properly.
| stackexchange/codereview |
typedef int F1(int x);
int F1(int x);
Seems the same to me,either with typedef or not..
| stackexchange/codereview |
$zipfile = 'zipfilename';
$extractpath= 'C:\extract';
$zip = new ZipArchive();
if ($zip->open($zipfile) !== TRUE) {
die ("Could not open archive");
}
// extract contents to destination directory
$zip->extractTo($extractpath);
How to avoid overwriting a folder if it already exist?
| stackexchange/codereview |
i want to find all image element who not have alt attribute means not have alt=""
if not then how i can replace them with
Find
Replace with
i want to replace if image not have alt attribute because it is big so how i can do this in visual studio
| stackexchange/codereview |
I am trying to write a method that finds the depth of a file system and another that finds the largest file. I have several folders which contain simple text files and are at various depths within the directories. I think there might be a problem with the file input, like it's not taking anything in or something? Here ... | stackexchange/codereview |
I have lots of experience with C++, (native) but I have never really ventured into network programming (example: games, chat software, or software that gets a file from a Web Site. )Where would be a good place to start for this? Preferably tutorials which are cross platform, and possibly some sort of project (not just ... | stackexchange/codereview |
I have an array:
$arr['alpha'] = 'a';
$arr['beta'] = 'b';
$arr['delta'] = 'd';
Does anyone know if PHP has a function to take the above array and produce:
$some_string -- where $some_sting is set to the associative values of the array such that if I echoed $some_sting I would see:
"a,b,d"
Thanks.
I know how to write a... | stackexchange/codereview |
I'm writing a program in .NET 3.5, that in some places has to go out and execute code from hardware APIs. This is all good, and working in 32-bit Windows 7, Windows XP, etc. The problem comes with Windows 7 64 bit.
I compile in 'Any CPU', and it does run in 64 bit on Windows 7 64 bit. So, to interface with this one pie... | stackexchange/codereview |
I need some clear mind thinking to provide some good suggestion how this kind of thing should be done to its best.
Problem
I'm building an Asp.net MVC application. Most of my views have a toolbar at the top. Toolbar can have several different items on it like:
buttons
notes
flush items (dynamic width space that's used... | stackexchange/codereview |
Im new about this technology, but I would like to know if is possible to create new object (html elements, such div/span/and so on...) dinamically on server and send it to the client, or if i can just load the ones made on client-side when i develop it in the application.
I don't ask how to do it (i think its a delicat... | stackexchange/codereview |
Could someone help me please I am not a developer/coder but am trying to use this calendar to display time intervals of 15 minutes rather than the current 30 minutes time intervals on the X axis of the display in the left hand column.
The events being booked are still 30 minutes long but start at 15 minute intervals, i... | stackexchange/codereview |
I'm passing parameters (over 30 in all) from a system.data.dataset into a tableadapter insert method, but I'm getting an "Input string was not in a correct format" exception.
The error points to the method that is throwing, which is great, but is there a way I can tell exactly which parameter is throwing the error?
(So... | stackexchange/codereview |
Im trying to insert data into a database table, the problem is that my column name (Recent Activity) has a space and its causing a problem.
sql_Query = "INSERT INTO [SprinklerHistory] (";
sql_Query += "[Recent Activity], Date, Time)";
sql_Query += "VALUES (";
sql_Query +=... | stackexchange/codereview |
text=u’<a href="#5" accesskey="5"></a><a href="#1" accesskey="1"><font color="#667755">\ue689</font></a><a href="#2" accesskey="2"><font color="#667755">\ue6ec</font></a><a href="#3" accesskey="3"><font color="#667755">\ue6f6</font></a>‘
I am a python new hand.
I wanna get \ue6ec、\ue6f6、\ue6ec,how to fetch these stri... | stackexchange/codereview |
I want to convert ip address to url. But i can't figure it out how to.
| stackexchange/codereview |
See this related question for Postgres. For some reason, the solution doesn't work for me - the return value of the insert statement is always "1".
See this other question for an XML based solution. I would like to do the same without XML - insert a record and find the new auto-generated id of the record I just insret... | stackexchange/codereview |
I'm studying WCF and WPF. I've learned a lot by doing sample projects, but I'm having trouble putting everything together. It would help if I could paraphrase my understanding of proper WCF/WPF structure and invite others to confirm or correct my ideas. Here is a very broad description of how I expect my next project t... | stackexchange/codereview |
How can I backup a MySQL database using a Java program?
| stackexchange/codereview |
I have 64 labels with text.
How can I apply this effect to all of them except one?
<BlurEffect Radius="8.0" KernelType="Box"/>
| stackexchange/codereview |
I'm considering doing my next presentation in Mathematica instead of Keynote, and one thing I miss is Keynote's presentation mode -- when presenting it shows current slide on projector screen, while on laptop screen it shows current slide, next slide and timer. A work-around solution might be to convert Mathematica not... | stackexchange/codereview |
I use visual block to copy a specific column in some ranges (say lines x to y). I wonder if there is a simpler way to accomplish the same task.
Also, after I copy those lines, I would like to cut and paste them horizontally. Is it possible? It's sort of annoying to do J, especially if the number of lines is large.
For ... | stackexchange/codereview |
I have to add an additional validation rule to a form field in a Java web application.
I have a rule in place that validates that the form field value entered is that of a valid employee ID.
But now I would like to verify that this value is either the Employee ID of the form/web user or of an employee of the form/web... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.