custom

How to create custom JVM ?

I was reading item #6.10 on http://www.cafeaulait.org/javafaq.html and I began wondering how the big players go about creating their own implementation of a JVM. Would an experimental something or another be possible (and feasible) for one guy? ...

WiX - Custom Action (after installation) does not run on upgrade

I have created a custom action that gets triggered via UI. It works fine for new install but fails during upgrade. However, if I run a repair from control panel, it then runs fine. I tried capturing msi log but it does not give any clue. Here are the snippets... UI: <Control Id="CloseButton" Type="PushButton" X="230" Y="243" Width="66"...

How do you simply add new custom rewrites to the .htaccess of a wordpress without fail?

I've added some extra functionality to my wordpress so that I can visit it with a variable and do extra stuff. The problem is, when I turn my ugly dynamic link into lovely permlink formatting in the .htaccess file, wordpress overrides it / ignores it. I've heard there's a way to do it, but the ways I try to do it based off what people h...

How do I dispatch a custom event from an actionscript 3 class and listen for it in the document root?

I built a custom event dispatcher that passes variables. I dispatch the event and then I try to listen for the event in my document root, but I never receive the event. How do I bubble the event up to my document class? addEventListener(CustomVarEvent.pinClicked, pinClickedHandler); function pinClickedHandler(e:CustomVarEvent) { t...

How do I subscribe to the resources of another google custom search engine

I set up a Google custom search engine that I truly love. From time to time I find other custom search engines to whose links I'd like to subscribe to. How do I do that? ...

How do I modify existing AS3 events so that I can pass data?

So I want a way to set up events so that I can pass data without creating closures \ memory leaks. This is as far as I have got: package com.events { import flash.events.Event; public class CustomEvent extends Event { public static const REMOVED_FROM_STAGE:String = "removedFromStage"; public var data:*; public f...

How to read app.config from a custom location, i.e. from a database in .NET

I am trying to override the ApplyConfiguration method in my custom ServiceHost to read the configuration from a database instead of app.config. Ideally I would want to be able to do something like this: Configuration config = GetConfigFromMyDatabase(...); ServiceModelSectionGroup serviceModel = ServiceModelSectionGroup.GetSectionGroup(...

how to display custom quotation marks with sifr?

I have some text and quotation marks around it, but I want each of them to be a different font to be replaced by sifr. The problem is that the quotes need to go exactly around the text, but the text once turned into an tag becomes a block and the text isn't shaped necessarily like a rectangle. I thought about having the quotes be backgr...

Custom Keyboard on iPhone

What's the easiest way to implement a custom keyboard on the iPhone? I basically want an action sheet that keeps part of my interface visible, but I want to load my own view into it, preferably via nib. I've been looking into modal views, but I'm getting the feeling I'm going in the wrong direction. ...

Disabling Required Field Validators server-side of checkbox is checked

I have a Custom Control that has multiple textbox fields and a checkbox contained within it. If the checkbox is checked, and the user submits the form, I need to allow them to continue if the textbox's are empty (and the checkbox is checked). I have to implement this without javascript. The problem is that on the OnInit event of the C...

Flex custom components

Hello, I red I can create "MXML components" and "AS3 components". The two methods use an existing component as their bases. The question: what if I can't extend any of the existing component (because I need something totally different)? Do I have to create the component from scratch using the (commercial) Flash authoring environment? ...

Iphone UIButton not working in nested UIViews

This is so damn simple im sure! Im missing something and im exhausted from trying to fix it. hopefully someone can help. The Button in CharacterView.m works but the button nested down in CharacterMale.m does not. I'm not using IB everything is done progmatically. What would cause one button to work and other not? //////////////////////...

How to create a custom Swing Component

I've always wanted to create custom components in Java, or customize existing ones, but my searches never resulted in anything useful. So I decided to ask the StackOverflow community: Where can I find information about customizing Java GUI Components in general? And when I mean customizing, I'm not talking about changing colors, fonts ...

asp.net custom grid vs GridView/ListView

A few years ago, I decided to create my own DataGrid as I didn’t like the standard one provided by Microsoft. It’s a very simple function which takes a DataTable as an input parameter and which returns a string (the html code to display a table on a webpage). It’s very flexible (there are some optional parameters to do the paging, sort...

Extending SSIS 2005 Packages with Custom Objects

Am I right to be concerned about extending SSIS packages with custom objects? I accept custom objects can extend the functionality of SSIS and can reduce repetition & complexity within SSIS. Are there any guidelines as to when to use custom objects? What are the risks e.g. performance, maintainability etc? Where do I draw the line? ...

Controlling the ID of a custom action item in SharePoint

I have added a custom action to the CustomList type. For testing purposes I would like to exercise my new custom action using our testing harness. Unfortunately, I don't know how I can generate an ID for my custom menu item! Here is an example (XPath expression) for the 'Delete Item' built-in menu option: /body/div/div/table/tbody/tr[@...

Custom primitives in C#?

Apart from the questionable usefulness of this, I'd like to ask if it is possible to do something along these lines. class MyPrimitive { String value; public String Value { get { return value; } set { this.value = value; } } } // Instead of doing this... MyPrimitive a = new MyPrimitive();...

How can I restrict the visibility of a custom list action to a newly defined group

I have created a custom action for items in a list (custom printing of the item). I have defined a new SharePoint group called 'Print Users'. I want to restrict the availability of the printing custom action to only members of the 'Print Users' group. I haven't been able to find an attribute in either the feature.xml or element.xml file...

python random.random() causes "'module' object is not callable" when used in custom template tag

If I start python from the command line and type: import random print "Random: " + str(random.random()) It prints me a random number (Expected, excellent). If I include the above-two lines in my django application's models.py and start my django app with runserver I get the output on the command line showing me a random number (Grea...

Rewrite standard controls like edit, combo, etc?

I have a custom control: it's managed code, which subclasses System.Windows.Forms.Control. I want to add things like edit boxes, selection lists, combo boxes, radio buttons and so on to places on this control. An easy way to do this is to simply add instances of these classes to the Controls collection, so that they become child control...