Does ColdFusion offer a mechanism for splitting CFCs into multiple files? I am NOT talking about extension, I am talking about splitting the SAME CFC into multiple files; the same way C# allows for "partial" classes. The reason for this is because I am using T4 to generate a bunch of CFCs and I want to be able to tag functionality onto the…
I have a WPF application with a WCF service layer and a SQL database.
I now want to restrict elements of the application so that certain functions are only available to those users with a particular role. For example, you will only be able to navigate to the settings screen if you are an administrator.
I would like a user to be a member of…
I want to change the imposed Windows maximum width that a window can be resized to, for an external application's window (not my C#/WinForms program's window).
The documentation of GetSystemMetrics for SM_CXMAXTRACK says:
"The default maximum width of a window that has a caption and sizing borders, in pixels. This metric refers to the…
I've been reading through some of guides on database optimization and best practices and a lot of them suggest not using boolean flags at all in the DB schema (ex http://forge.mysql.com/wiki/Top10SQLPerformanceTips). However, they never provide any reason as to why this is bad. Is it a peformance issue? is it hard to index or query…
Is it possible to get the this that a function's caller was called with in JavaScript without passing this to the arguments in a way which supports IE as well as Firefox/Chrome et al?
For example:
var ob = {
callme: function() {
doSomething()
}
}
function doSomething() {
alert(doSomething.caller.this === ob)…
Any ideas what could be causing the message from ActivityManager, "Activity destroy timeout for HistoryRecord" when attempting to end an activity. This prevents the activity from restarting.
I'm stuck. Don't even have an idea where to look.
Hi,
A job came in to me that's built with CodeCharge - had a look at it and seems to be a pretty basic point-and-click site builder tool. Has anyone got any in-depth experience with it? My first reaction is one of horror and to just rebuild the code in Rails or PHP but I thought I'd ask the question first, maybe i'm missing…
Hey,
I'm trying to get familiar with the whole keyboard event detection thing.
Here's my sample code.
<fx:Script>
<![CDATA[
import flash.events.KeyboardEvent;
import mx.controls.Alert;
private function init():void{
…
Are there good reasons why it's a better practice to have only one return statement in a function?
Or is it okay to return from a function as soon as it is logically correct to do so, meaning there may be many return statements in the function?
I'm new to SQL Server. how can I add the values of my Pie Chart to the Legend next to the Series fields? In this case I want the percentage.
For example:
United States 43.2%
Canada 22%
etc.
Hi,
I want a solution to validate only domain names not full urls, The following example is what i'm looking for:
domain.com -> true
domain.net/org/biz... -> true
domain.co.uk -> true
sub.domain.com -> true
domain.com/folder -> false
domµ*$ain.com ->…
I'm using a barcode font (IDAutomationMC39H) in an SSRS 2005 report I'm developing, and while it renders fine in the preview in BIDS, if I export the results to PDF, print the results, or do any of the above (including preview) in Report Manager, the barcode font is…
ok im new at javascript, but im trying to change the innerhtml of a div tag, heres my script and its not working:
<head>
<script type="text/javascript">
function var1() {
document.getElementById('test').innerHTML = 'hi';
}
window.onLoad = var1();…
Hi,
I'm using jQuery UI 1.8 and I would like to hide the year from the user in both the popup and the textbox. Essentially instead of picking the day, month and year I want the user to just pick the day and month.
Hiding the year in the textbox is easy…
I have a basic page to which I'm adding an uploader control based on Bulk Uploader at c-sharpcorner.com and the control is in a jQuery-faded div based on yesdegisn
The Bulk Uploader has two server side event handlers for two buttons--Add and Remove.…
I want to hide the tool I used to create an .exe file. I am not doing anything illegal, I just want to protect my intellectual property from being copied. If I open the exe file in a text editor I see the following section.
<?xml version="1.0"…
Yes a lot of what you need to do is specific not only to the vendor you use, but also to the specific reports you are creating. However, there are also good general rules that hold for most reports.
Vendor Best Practices
BIRT Best Practices…
Hi,
i always like to real-time edit a web page source in the browser and updated as i type, but firebug really sucks, i can't insert scripts in the current page, some times the changes i type aren't updated at all, Is there any robust…
I have the interesting problem of representing complex schedule data in a database. As a guideline, I need to be able to represent the entirety of what the iCalendar -- ics -- format can represent, but in a database. I'm not actually…
Hi,
i have the following code to update a google map:
function updateit(c1,c2){
alert(c1+"-"+c2); // This works
map.setCenter(new GLatLng(c1, c2), 13); // But this doesn't
}
updateit(37.4419, -122.1419);
The alert is working and…