custom

Magento: how to prefill values of a product's dropdown attribute

I'm building a Magento shop for a customer and would like to add an attribute to all products that functions as a dropdown list. Like the 'Manufacturer' attribute. However, instead of manually entering the list of values for the attribute I'd like the values to be populated from an external site. So, every time you create a new product ...

Spring MVC Custom Authentication

What I am looking to accomplish is a filter (or similar) that would handle the authentication model for my Spring MVC application. My application is also hosted on Google App Engine. The authentication on this application can tend to be very dynamic and the permissions are not something that would fit cleanly into a predefined Role stru...

Start exe after msi install but using current user privileges

I am using Visual Studio 2008 to build an MSI install package. Within the install I have numerous custom actions. Within the OnAfterInstall custom action I attempt to start an exe which is deployed by the install. The exe starts ok, but runs within a security context of NT AUTHORITY\SYSTEM (i.e. under the elevated privileges granted t...

Custom event in jQuery that isn't bound to a DOM element?

I'm curious if its possible to create a custom event in jQuery that isn't bound to a DOM element. I greatly prefer jQuery to YUI but there is one thing in YUI that I like, which is creating custom events and being able to subscribe to them later. For example, this creates an event that is bound to a variable, not to a DOM element: var...

Custom Compiler Warnings in Visual Studio 2008

http://stackoverflow.com/questions/154109/custom-compiler-warnings and http://stackoverflow.com/questions/968249/c-create-custom-warning-in-visual-studio-if-certain-method-is-used-in-source-co haven't helped as they deal with code that is under the author's control. We are using a 3rd party suite of UI controls (DevExpress) in our softw...

TreeView with custom drawn TreeNode

Hi I am trying to add a custom icon near the text of a TreeNode, so the items could have a "checked/unchecked" state displayed. I don't want to use a checkbox for that. Any ideas? Thanks ...

Background image of CustomTableView Cells

Hi, Can you help me to fix this problem. I am customizing my table view to show various images in the background of the cells accordingly as Selected : Font Changed to While Colour, Background image, Highlighted.png Deselected/Normal: Font -> Black colour, Bg Image: Default.png I tried to override - (void)drawInteriorWithFrame:(NSR...

Custom NSComboBox rendering text problem

Hi, I am designing a custom NSComboBox to display the rect image as some ComboboxBg.png and set foreground (text) color to Red. To render image I am doing the following things. @interface CustomComboBoxCell : NSComboBoxCell { } @end @implementation CustomComboBoxCell - (void)drawWithFrame:(NSRect)bounds inView:(NSView *)controlView...

customize callout bubble for annotationview?

I'm currently working with the mapkit and am stuck. I have a custom annotation view I am using, and I want to use the image property to display the point on the map with my own icon. I have this working fine. But what I would also like to do is to override the default callout view (the bubble that shows up with the title/subtitle when t...

Installer Project with non-EXE products, and customs steps

I've created an Installer project (via the Installer Wizard project) in Visual Studio 2008. Its easy to install EXE's and DLL's with, but I've got a more complicated deployment process. There's a FireFox extension (.xpi) that I want to deploy. I would like to include it as an output of another project, rather than copy it into the Ins...

Custom URL for each user in PHP.

Is it possible to have a website where each user gets their own URL like: www.thewebsite.com/myusername I want each user site to be the same, the only reason the name matters is if a person visiting the site signs up, they get their own custom url, but the person they signed up under is kept track of as their "Parent". So if I go to ww...

Calling custom PHP inside Drupal

Drupal version 6.12 I have a page whose input format is PHP. I simply want to update a database table. The SQL code appears to be too complex for db_query. I can not make db_query work nor does including php nor does dropping custom php code into the “Body” seem to work either. Any advise on how I can make the following code work in...

How to modify Toolbar Icon to show Text in FCKEditor

Does anyone know how I can add text into the toolbar? I would like to add some text to one of the buttons just like how the button for "Source" has the small icon, but also has the word "Source" beside it to describe what that button does. Basically none of my test users knows that the little mountain icon is used insert an image. Becau...

WebDAV/ftp/etc custom solution

Hi! We have a project (Web/PHP) where we would like users to access their files, used in our application, using some kind of standardized protocol e.g. FTP or WebDAV. This would make it easier for our users to access their files, which mainly consists of templates and images. The thing is, the directory that the users would be browsing...

Point of need of custom Enumerations

When reading a post some points were given without example : To implement IEnumerable / IEnumerable, you must provide an enumerator : •If the class is "wrapping" another collection, by returning the wrapped collection's enumerator. •Via an iterator using yield return. •By instantiating your own IEnumerator/IEnumerator implementatio...

C# iteration requesting scenario based example

I am dropping this line after having visited different websites to try understand real time example of using custom enumeration.I got examples.But they lead me to confusion. Example Take 1 class NumberArray { public int[] scores; public NumberArray() { } public NumberArray(int[] scores) { this.score...

Custom web service context issue

hi All, I have created a custom web service and deployed it to _layouts folder. it seems like SPContext.Current.Web.Url always return the root web url no matter when the web service is calling from. does sharepoint rewrite the reuqest url for web service somehow? thx Kevin ...

Accessing Custom configSections in Web.Config from Custom Assembly in SSRS

I am trying to allow my custom assembly to utilize the Report Server's web.config file during report rendering. Currently, the custom assembly code can access the ConnectionStrings and AppSettings from the web.config, but when I try to access customer config setting via System.Configuration.ConfigurationManager.GetSection("") I get a typ...

How to create a custom ASP.NET control with automatic validation

I am building an ASP web site that contains a large section that represents a database front end. I need to build forms to manipulate the database and obviously there would be much repitition i.t.o the type of input field and rules pertaining to the field. For example there are many tables where I have take on varchar(n) fields that coul...

Newbie question on Flash video players, products/SDKs, and API.

Hello, I'm a C programmer and a total newbie to Flash/video/web world. Don't know where/how to start, and so would greatly appreciate your initial help. Question If I need to host flash videos off of my website (instead of embedding YouTube links on my webpages), AND If I need to provide player API like YouTube's that can be used, s...