Is there a way to determine whether a record was matched or not (whether the record was inserted or updated) after calling MERGE?
Ideally I'd like to output it to a parameter.
Hi,
I am using the framework of route-me for working with locations.
In this code the path between two markers(points) will be drawn as a line.
My Question: "What code should I add if I want to add an arrow in the middle(or top) of the line, so that it points the direction"
Thanks
- (void)drawInContext:(CGContextRef)theContext
{
…
Hi everyone!
I know I know, why am I using MP4 still?? It's because I have like 100 files already in this format and I need to upload to a website, I have the mp4 file embeded in the site already and the file played changes according to php.
but what I really need is a way to dynamically create a thumbnail or take a snapshot of the…
We currently have in production SQL Server 2005 and we use it's full text search for a eCommerce site search of a million product database. I've optimized it as much as possible (I think) and we're still seeing search times of five seconds.
(We don't need site scrawl or PDF (etc.) document indexing features... JUST "Google" speed…
I'm trying to figure out the jQuery statement to rename "apple" with "orange:"
<a id="#alvin" href="http://www.camille.com"><ins class="xxx">Anna</ins>apple</a>
Can this be done easily?
I'm looking to tokenize really simple strings,but struggling to get the right Regex.
The strings might look like this:
string1 = "{[Surname]}, some text... {[FirstName]}"
string2 = "{Item}foo.{Item2}bar"
And I want to extract the tokens in the curly braces (so string1 gets "{[Surname]}","{[FirstName]}" and string2 gets…
Hi,
I must be missing something fundamental here. I have a UITableView inside of a NavigationViewController. When a table row is selected in the UITableView (using tableView:didSelectRowAtIndexPath:) I call pushViewController to display a different view controller. The new view controller appears correctly, but when I pop…
Hi! A few hours ago, I was instructed how to style a specific textarea with JS. The following piece of code (thanks again, Mario Menger) works like a charm in Firefox but unfortunately nothing happens in Internet Explorer (7 tested only so far).
var foo = document.getElementById('HCB_textarea');
var defaultText = 'Your…
Using a trigger-based approach to audit logging, I am recording the history of changes made to tables in the database. The approach I'm using (with a static sql server login) to record which user made the change involves running a stored procedure at the outset of each database connection. The triggers use this…
Hi.
I have a lot of custom keyboard shortcuts set up. To avoid having to set them up every time I install a new visual studio (happens quite a lot currectly, with VS2010 being in beta/RC) I have created a macro, that sets up all my custom commands, like this:
…
In SQL how do I exclude a record if there are more than 2 characters after a dash..
Example I only want to return records that match the following
AA00000-0
but the table also has recoreds like AA0000-000,AA0000000-00
I need to return only records that…
Hi everyone!
I'm having problems with putting a favicon on my website!
I have this code
<link rel="shortcut icon" type="image/ico" href="img/favicon.ico">
And for some reason Firefox shows the favicon fine, but on webkit browsers its not showing…
Edit: Debugging has got me further. Question clarified.
We have installed Ruby, RubyGems and Rails and have forked the shopify_app project. We have created a new rails applications and added three items to the Gemfile: execjs, therubyracer and…
I am writing a tool which communicates with more than one version control system, either subversion or clearcase, and has various utilities which can be plugged into it. I though of using MEF to load the version control providers, and utiilities,…
I'd like to be able to run a command that opens up a git diff in vim, with a tab for each file in the diff set.
So if for example I've changed files foo.txt and bar.txt in my working tree and I ran the command I would see vim open with two…
We're just moving from VSS to ClearCase and it's nearly impossible to find out how to do anything :-(
I need to script (using ClearTool?) a sort of VSS-GetLatest, i.e copy a folder and all its contents to a windows folder
Any clues (in…
In addition to the datastore for your specific site, can you also share one datastore between all your websites? (Like connecting to a different MySQL database from your main MySQL database?)
I am trying to write a simple piece of Jquery in which the script will check whether a table cell contains a range of numbers.
I'm unsure how to do this, because if you were to do something like this:
var num_range = ">1";…
I am writing a program that needs to read a set of records that describe the register map of a device I need to communicate with. Each record will have a handfull of fields that describe the properties of each register.
I…
I would like to be able to place the word "hello" centered on a specific point. I need to do this completely in XAML without extra code. Best I can tell, all the text alignment properties/styles in XAML act on text…
This is more of a question to satisfy my curiosity vs something I really need answered. Back in ASP.NET WebForms, I'd occasionally use a positional parameter in a query string if I only had to pass one thing to a…
Hello,
How do I programmatically get the system country tld. In the registry there's a key called sCountry which has the country's name, but in the system language, eg. If the user has the Spanish version…
I am developing a single web application that will dynamically change its content depending on which domain name is used to reach the site. Multiple domains will point to the same application. I wish to…
Anyone know of a way to find out the amount of memory/size of a XMLDocument once it has parsed a XML file? I've been doing "beer mat" calculations so far but have been asked to come up with some more…
Say I have an User (mapped to a User table) and the Edit view (in MVC) displays a multiselectlist of Modules (mapped to a Modules table) that user can access, with the Modules pre-selected based on…