builder

How to share constants between Interface Builder and the code ?

I wonder if there is a way to use constants in Interface Builder, in order to avoid manually setting the same color at different places for example (it could be a very tedious job sometimes...) Currently I set the color in the code and use #define to setup the color, but obviously IB can't use #define... ...

Replace keystroke in Borland C++ Builder 6

Hi. I must replace keystroke when user typing in TextBox. When user type 123,456,789 text box must contain 123.456.789. Please HELP. ...

Builder or some other pattern to always create instance in valid state

I have a very complicated setup of objects and each selection along the way limits or expands options available. I would hate to throw exceptions or to create invalid instance of the object. So, I want to limit options (methods available to invoke) when building an instance based on the previous method input paramters. For example if I h...

Sharepoint web application creation using the object model

I am using the webapplicationbuilder class to create a new web application and have found many articles that help with this, none however seem to specify how you designate the URL or the application, i just get "sharepoint - 123" where 123 is the port specified and "servername/:123" as the url, whereas i need "http://myserver/. Thanks ...

Need a GUI Builder for Tkinter / Python

Hello, I need a GUI Builder for Tkinter... was using something a couple of years ago, but I can't find it anymore (I remember something related to Komodo IDE, but perhaps I'm wrong). Please don't give me links to non-functional, old or dead projects, because I found lots of them and none worked; I need something functional. Also, I don'...

Ruby XML::Builder with hyphen in Element name

I'm trying to generate some XML using XML::Builder, but my element names need to have hyphens in it. When I try I get undefined methods, with the element name being truncated at the hyphen xml.instruct! xml.update-manifest do xml.latest-id @latest_version_update.guid xml.download-url @latest_version_update.download_url xml.relea...

External Content with Groovy BuilderSupport

I've built a custom builder in Groovy by extending BuilderSupport. It works well when configured like nearly every builder code sample out there: def builder = new MyBuilder() builder.foo { "Some Entry" (property1:value1, property2: value2) } This, of course, works perfectly. The problem is that I don't want the information I'm bu...

creating Online form builder

Is it possible to create clone of the site http://jotform.com/ using asp.net I tried using jquery and asp.net, Creating the user interface is okay, but i'm stuck in managing the backend e.g. the form will have variable number of fields and the variable number of fields will be saved in the database saving-retrieving-managing form sub...

Rails XML Builder - Code refactoring

I have written the following code in my Rails app to generate XML. I am using Aptana IDE to do Rails development and the IDE shows a warning that the code structure is identical in both the blocks. What changes can be done to the code to remove the duplicity in structure? Is there any other way to write the same? xml.roles do @roles...

Special characters with Ruby XML Builder

I'm trying to a Google kml tour with ruby and I get a syntax error with this code xml = builder.gx:Tour It doesn't like the colon. Is there a way to force it to compile this? ...

Create groovy xml with an "envelop" - add nodes in the middle of a xml structure

Hi all, (sorry for the weird title...) I want to use the groovy builder system to create a xml. My problem is that i want to have some kind of envelop around, which the user dont has to care about. An example: def builder = new groovy.xml.MarkupBuilder() builder.foo() { bar('hello') } this should create lets say <Something i...

testing (rspec) nested model partials in rails 2.3+

With the 2.3.x+ rails feature of nested models, I think I need to have access to a form builder instance to properly spec partials for rendering the nested models. Pulling from the complex-forms-examples: For example, here is an enclosing form that creates and passes the form builder to the nested model rendering view: <div class="chil...

open source website builder web application

Hello, Is there a open source website builder application. [edit] no db entry I need to install it on my server and permit users to create pages. Not looking for cms's like drupal,wordpress, joomla etc Thanks Dave ...

QA: Structure, Performance of this QueryBuilderClass

Hi there, I build this little helper class to try class chaining in PHP to build SQL (atm very simple SELECTs) queries very easily. Any ideas or complaints about it, or tips for the future? class SQLQueryBuilder{ public $query; public $parameters = array(); const SELECT = 'SELECT '; const FROM = ' FROM '; const WH...

Inline DTD with Builder

Hi, How would I create this... <!DOCTYPE root-element[ <!ENTITY % w3centities PUBLIC "-//W3C//ENTITIES Combined Set//EN//XML" "w3centities.ent" > %w3centities; ]> ...using Builder? I can manage everying apart from the "%w3centities;" in the second to last line with the following code: xml.declare! :DOCTYPE, "root-element"...

Customize Node Names in Ruby's Builder

I'm building a tool that generates dynamic xml. As a result my Models have pretty generic names: Project has_many :Groups Group has_many :Items has_many :Groups belongs_to :Project Item has_many :Params belongs_to :Group Param belongs_to :Project belongs_to :Group belongs_to :Item So when I build...

Process Builder Issue

I am working on a java program where I have to call another java program using process builder because it uses a separate JRE. Here is batch program which calls this program and works properly: cd C:\apps\Project_name\bin\ C:\Progra~1\Java\jre1.6.0_03\bin\java -Xms512m -Xmx1024m -cp ../lib/spring-1.2.2.jar;../lib/log4j-1.2.8.jar;...

Eclipse - What is exactly a Builder ??

Hello, I don't understand what is exactly a builder in CDT, and what is the relationship with the "C/C++ Build" content. I set up SCons in the "C/C++ Build" confuguration. It does work : I made two configurations (release and debug), and my SCons scripts are launched. But as I try now to debug, I am studying these Builders stauuf (I am...

How to generate XML file using Ruby and Builder::XMLMarkup templates?

As you all know, with Rails it is possible to use Builder::XMLMarkup templates to provide an http reponse in XML format instead of HTML (with the respond_to command). My problem is that I would like to use the Builder::XMLMarkup templating system not with Rails but with Ruby only (i.e. a standalone program that generates/outputs an XML f...

When should I make a referencing outlet for a UI control and when just an event? (iPhone SDK)

I have some code that works without having referencing outlets for the controls - just event ties in Interface Builder. Is this ok and is a referencing outlet only necessary to change the state of a UI control? Thanks. ...