add

How to concatenate two arrays in Java?

I need to concatenate two String arrays in Java. void f(String[] first, String[] second) { String[] both = ??? } What is the easiest way to do this? ...

Adding up item prices to get total

I have started making a database and I have an 'ordered item' and a 'invoice' table. I would like to find out how I would add up the prices of the items that the customer picks. As well where abouts do you put this 'rule' on the database. ...

The route addition failed: Cannot create a file when that file already exists.

I get this error when using c:>route add <route_and_interface_here> This happens on a RRAS server that has a PPTP site-to-site VPN setup with demand-dialing static route. This route shows in RRAS routing table but does not show in c:>route print table which might be the first source of the problem. Anyone seen this before? Anyone with ...

C# Add HyperLinkColumn to GridView

Hi, I'm trying to add HyperLinkColumns dynamically to my GridView. I have the following code: HyperLinkColumn objHC = new HyperLinkColumn(); objHC.DataNavigateUrlField = "title"; objHC.DataTextField = "Link text"; objHC.DataNavigateUrlFormatString = "id, title"; objHC.DataTextFormatString = "{2}"; GridView1.Columns.Add(objHC); This...

Adding negative and positive binary?

Hi, I have f.eks X = 01001001 and Y = 10101010 If I want to add them together how do I do that? They are "Two's Complement"... I have tried a lots of things but I am not quite sure I am getting the right answer since there seems to be different type of rules. Just want to make sure it is correct: 1. Add them as they are do not convert...

Add New Column in Infragistics Wingrid

I am using Infragistics wingrid in my application. I have assigned a datasource to my wingrid.Now i want to add a new column at a specific location. Can any one plz tell me how can this be performed. Regards, Savan ...

Add new templates in Xcode

How to add new templates in Xcode for iPhone application developement? ...

How to insert an image into some html through JQuery?

Howdy Guys, Here is the situation. I've got a standard link like so: <h2><a href="#">Link Title</a></h2> Now, I want to insert a background to make it look like a button, so I add a span with JQuery like so: $(document).ready(function() { $(".post a").wrapInner("<span></span>"); }); (The html for the link can be found here, ...

Possible to dynamically add an asp:CheckBox control to a TableCell?

Hi everyone, In my .NET application I need to add a checkbox to each row in a dynamically created asp:Table. Is it possible to do that by dynamically creating an asp:CheckBox for each row and somehow put it inside a TableCell object? (In that case how?) Or do I need to replace the asp:table control with something else, like a Repeater ...

Add Gridview Row AFTER Header

Hi, i'm trying to add a new headerrow to a Gridview. This row should appear below the original headerrow. As far as I know I have two events to choose from: 1.) Gridview_RowDataBound 2.) Gridview_RowCreated Option 1 is not an option as the grid is not binding the data on each postback. Option 2 does not work as expected. I can add th...

C# making a tab, adding controls to the tab, and then having multiple tabs of that type

TabPage newpage = new TabPage(); Tabs.TabPages.Add(newpage); newpage.Controls.Add(this.tableLayoutPanel41); newpage.Location = new System.Drawing.Point(4, 26); newpage.Name = "AddMaintAgreement" + offset; newpage.Size = new System.Drawing.Size(736, 523); newpage.TabIndex = 10; newpage.Text = "Add Maintenance Agreement"; newpage.UseVisual...

Adding row to binded dataview

I am in need to add row to the dataview My code is as follows DataGridViewSelectedRowCollection row = dataGridView1.SelectedRows; for (int o = 0; o < row.Count; o++) { DataRow myRow; myRow = (row[o].DataBoundItem as DataRowView).Row; DataRowView drv = dv2.AddNew(); drv = row[o].DataBoundItem as DataRowView; } It add...

Create Vista User Account Question...

Hello, I am trying to find out how I can programmatically create a logon account in Windows Vista with UAC enabled? I have an OCX that creates a user account and it has worked for years on NT and XP, but now our application fails with Access Denied when creating the account on Vista. If our customers turn off UAC then setup that app i...

Different ways of creating Outlook AddIns

When creating an VSTO Outlook AddIn there are some restrictions which are a bit annoying. For example if you start Outlook due to a click on a mail link, no addins are loaded due to security reasons. Is there a way to override this behaviour? Maybe an alternate way of creating an Addin without using VSTO? If I remember correct there are...

Is it possible to check in a file or add a file to an SVN repository without an SVN client?

Is it possible to check in a file or add a file to an SVN repository without an SVN client? Using a browser, I was able to access the files on an SVN server using Apache. If I don't have an SVN client on a certain computer, can I add the file (and commit it), such as by the browser's "Upload File" function? Being able to do so could b...

Problem adding validation list in excel sheet using VBA

I have an excel sheet that is loaded with a dynamic result set of data. I need to add a YES/NO dropdown at the end of each row once all the data is loaded. I have to do this dynamically as I do not know the size of the result set beforehand. The following code throws an 'Applicaton-defined or object-defined error': Dim firstRow As Integ...

Unable to track files in long PATHs by Git

Git says to use git add to add untracked files to my repo. I have run unsuccessfully git add shells/zsh/keyboard_configs/ git add shells/zsh/references/ git add shells/zsh/keyboard_configs/* git add shells/zsh/references/* git add shells/zsh/keyboard_configs/*<TAB> git add shells/zsh/references/*<TAB> git add . I still get that ...

Unable to track files in deep directories by Git

Problem: to add files at ./shells/smallApps/* to Git at ./.git/ when I do not have the files at ./.git/info/exclude nor at any .gitignore -files. This question is based on this tread where the problem is not solved completely. I run $git status ...

Can't add a file named "VERSION" to CVS at the same level of a dir named "version"

I'm reporting a series of commits from git to cvs with cvsexportcommit. I've found that it's impossible to add the VERSION file in the following context | \_version/ | | | \_version.txt (to be removed) | \_VERSION (to be added) The output I get is the following: Applying to CVS commit f6ce403e6e1d57b61661527969ac97c52bcbe41f from p...

Can I modify git-add's hunk size?

I have a file that I've been working on and then realized that I had a mistake in it a few lines above where I've been working. I quickly fixed the mistake and want to commit it before I commit the rest of my work. Great, this is where git add --patch comes in! Except, I'm being presented with only one hunk incorporating both changes. I...