Happy Monday o/
I'm looking to do the following within a stored proc
select @parameter="fooproc"
drop procedure @parameter
instead of
drop procedure fooproc
But it's choking with a syntax error. Is there some way I can bend this to my will? I would've expected to be able to do this.
I've tried a few permutations of type declaration…
How to .NET package JavaScript/bookmarklet as Interner Explorer 8/9 Plugin?
I have recently finished writing JavaScript code for a browser addon, which basically (once the JS is included) runs on page-load, for given domains it then checks for certain elements in the DOM and adds new relevant elements(/information) to the page.
Since the…
I'm researching a way to build an n-tierd sync solution. From the WebSharingAppDemo-CEProviderEndToEnd sample it seems almost feasable however for some reason, the app will only sync if the client has a live SQL db connection. Can some one explain what I'm missing and how to sync without exposing SQL to the internet?
The problem I'm…
I am working on radiobuttons and combobox in my wpf App. Although I am a C++ developer, I recently moved to C#. My app deals with dynamic generation of the above mentioned components. Basically I have created 4 dynamic radiobuttons in my app and on clicking each, i should should add different items to my combobox. Here is the code:
…
We have a website developed by ASP.NET+IIS7 and its default document is default.aspx. It works fine. But when we tried to switch the default to index.html, weird things happened.
We have modified web.config as follows:
<defaultDocument>
<files>
<clear />
<add…
Hi,
My project has a fairly deep graph of Maven modules. The root POM has the following plugin configured
<plugins>
<plugin>
<groupId>org.jvnet</groupId>
<artifactId>animal-sniffer</artifactId>
<version>1.2</version>
…
Hope the title says it all... I'm wondering if it's possible in any existing lightbox to pop up a look similar to the mac dashboard where multiple divs could be "on" in the front with the main webpage with a gray overlay.
Basically something where a user clicks an icon on the main webpage to call,…
I have a dll function that takes BSTR parameters. These are casted as char* before being used for other things.
When the dll is called from VB code this works fine. However, when it is called from C# code, only the first character is pointed to.
Both of these are excel addIns for Pre-2007 and…
All,
I have a web site that's built with GWT at https://penwag.com/penwag/. If you just hit the site and see the main page, there's supposed to be a login/registration area that displays, along with a teaser for the site. I've tried the site with most of the main browsers - FF 3 & 3.5,…
Hi,
I'm creating 2 Google calendars via the Java client API using the following Groovy method:
private CalendarEntry createGoogleCalendar(User user) throws ServiceException {
new CalendarEntry().with {calendar ->
title = new PlainTextConstruct(user.email)
summary =…
I'm using Ext JS 2.3.0 and have a bunch of fields contained within a FieldSet
I'd like to have them laid out side-by-side instead, ideally with the label on top of the field instead of to the left of it. The relevant code is:
var kpiFilterCombo = new Ext.form.ComboBox({
…
Is there a leak in this code?
// Move the group
Group *movedGroup = [[Group alloc] init];
movedGroup = [[[[GroupList sharedGroupList] groups] objectAtIndex:fromIndex] copy];
[[GroupList sharedGroupList] deleteGroup:fromIndex];
[[GroupList sharedGroupList] insertGroup:movedGroup…
One of the things that block objects, introduced in Snow Leopard, are good for is situations that would previously have been handled with callbacks. The syntax is much cleaner for passing context around. However, I haven't seen any information on the performance implications of…
The following is from the Python v3.1.2 documentation:
From The Python Language Reference Section 3.3.1 Basic Customization:
object.__hash__(self)
... User-defined classes have __eq__() and __hash__() methods
by default; with them, all objects compare unequal (except
with…
Haloo everyone...I am new to asp.net and I have been trying to query one table, and if the value returns true execute another query.
here is my code:
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection con = new…
Odd behavior with file behavior. Here's the thing: I'm using the phone camera to snap a picture, and internally generating a thumbnail. I'm saving those as temp files in the Documents directory.
Here's the complete code:
-…
Wav files support different encodings, including mp3. Is there a C/C++ library that would produce mp3-encoded wav files from uncompressed wav? If not, what would be the best place to start to implement one?
I've created a graphing application that calls a web service. The user can zoom & move around the graph, and the program occasionally makes a decision to call the web service for more data accordingly. This is achieved by…
I have 2 controls (MyCtrl) next to each other called ctrlLeft and ctrlRight.
Whenever one receives interaction it is considered active (by default the left one). I override OnDraw and customize the look of the active one a…
Currently working on a project where a login will be required to use the application.
I'm trying to figure out a smarter way to reset the application if someone is somehow logged out and the next one to login is not the…
The default output of File.toURL() is
file:/c:/foo/bar
These don't appear to work on windows, and need to be changed to
file:///c:/foo/bar
Does the format
file:/c:/foo/bar
work correctly on Unix (I don't have a…