complex

c# binding (complex) class property CF.NET

Hi, I am trying to make a 2-way binding of a class property. public class MyClass{ public MyField AField1{get;set;}; public MyField AField2{get;set;}; } public class MyField{ public string Value {get; set} } MyClass _class = MyClass(); _dv.DataSource = _class; Databinding text object displays MyField class name instead of Value Prop...

SQL search, search for a|b|c|d in a table and return results ordered by number of elements in the record

the question: there are two tables - DAYS(name), ACTIONS(day_name,name) records for DAYS are: Sunday, Monday, Wednesday records for ACTIONS are: {eat,sunday}, {sleep,sunday}, {write,sunday}, {drink,sunday} {eat,wednesday}, {sleep,wednesday}, {write,wednesday}, {eat,monday}, {sleep,monday}, i want to search in ACTIONS for the day...

Complex Cursors for returning multiple rows

Each row in a cursor should be joined with another table and the whole result should be returned a one cursor Say cursor1 return 5 rows. Each of these 5 rows should be joined with table1. and the final result for all the 5 rows should be returned a 1 row. Plz help ...

RegEx in VBA: Break a complex string into multiple tokens?

EDIT: Two additional token types added. Hi, I am trying to parse a line in a mmCIF Protein file into separate tokens using Excel 2000/2003. Worst case it COULD look something like this: token1 token2 "token's 1a',1b'" 'token4"5"' 12 23.2 ? . 'token' tok'en to"ken Which should become the following tokens: token1 token2 token's 1a',1b'...

Modeling a complex Ads application

Greetings, I'm looking for some more experienced insights into my current problem; a short description: The setup and a simplified model. The goal of the web application is to provide a platform for posting, searching and reacting on ads. The ads themselves fall into roughly 3 large categories: Real estate Cars Various (basically a...

How to find User Stories with open bugs?

Actually I would like to have a query that finds all User Stories, whose all tasks and bugs are closed. The problem is that bugs are not connected directly to the user story but only to the test case, and the test case is connected to the user story. Another problem is that test cases link to user stories and are not children of them. W...

[SOLVED][AS3] Draw shadow without filter on Graphics object.

I have a complex graphics data on a sprite or a shape (no matter which is exactly). But I want to draw shadow (inner too) for one Rect ( [10, 10, 240, 25] for example) or another path. /// code before grObj.graphics.drawRect( 10, 10, 240, 25); /// -> draw inner shadow on this objcect somehow /// code after Is it possible t...

Best way to store complex relations of huge amount of data php/mysql

I'm trying to develop a web based digital asset management application. I'm planning to do it in Codeigniter with mysql as db. This is for a popular regional newspaper. They will have 1000 of entries and TB's of data as daily tons of information will be entered. There will be different content types like Media, Personality, Event, Issu...

Geometrical progression with any number row

I can have any number row which consists from 2 to 10 numbers. And from this row, I have to get geometrical progression. For example: Given number row: 125 5 625 I have to get answer 5. Row: 128 8 512 I have to get answer 4. Can you give me a hand? I don't ask for a program, just a hint, I want to understand it by myself and write a co...

WPF 3D - mapping gradient brush on complex geometry

Hello, I wanted to ask if anyone knows how to map gradient brush on complex objects in WPF 3D. The result should look similar to 3D images in matlab (3D function for example). Lets say you have some 3-dimensional data you wish to visualize and you want to diferentiate certain levels of values by color. ...

Does this work as a better Hello World app?

[ uuid(2573F8F4-CFEE-101A-9A9F-00AA00342820) ] library LHello { importlib("actimp.tlb"); importlib("actexp.tlb"); #include "pshlo.idl" [ uuid(2573F8F5-CFEE-101A-9A9F-00AA00342820) ] cotype THello { interface IHello; interface IPersistFile; }; }; [ exe, uuid(2573F890...

Creating a form with a duplicatable nested form inside of it :: A Complex Form Question

I am making a self duplicating form. It can create multiple instances of itself. The hiearchy is, an Organization has_many Referrals. There should be no 'updating'. It should be only a 'create'. My error is : Unknown action No action responded to update. Actions: create and new My Form: - form_for @organization, :url => organizat...

Anyone know how to save many objects in one form?

I am trying to save many new objects in a form to one pre-existing parent object. - form_for :parent_object do |f| This is the beginning of my form. And then within it, I would do: - 2.times do - fields_for :child_object do |f| Now if I were to save this, it would render as an ParentObject_Controller Update action which would...

MVC Model View for Complex Object

I am very new to MVC and I have a Model like this User : FirstName : TextBox LastName : TexBox User Commitee : [CheckBox Textbox] [CheckBox Textbox] [CheckBox Textbox] I store if user is in committee in a separate table.I need to insert selected check box value and related text box to database.How can I achieve this ? Can this be po...

An array of nested forms, but I do not want the previous completed objects to show

I have an Object where the object has a nested form of which can be duplicated as needed. To accomplish this I am using : - 2.times { @organization.referrals.build } - form_for @organization do |f| = f.error_messages - f.fields_for :referrals do |qf| = render :partial => 'referral_fields', :locals => {:qf => qf} Now I have tw...

Correctly instantiating a nested fields_for without showing older saved objects ?

I have a nested form that instantiates as this : - 2.times { @organization.referrals.build } - form_for @organization do |f| = f.error_messages - f.fields_for :referrals do |f| Except, the nested forms are supposed to be always new and unique. Where as this form shows previously created objects as well. So I tried to write as so...

How do you pass options through a fields_for ?

I am trying to run this.. - f.fields_for :referrals do |qf| But I would like to pass this, @organization.referrals.select{|ref|ref.new_record?} as well. This is so that the forms passed are exclusively new objects, and not older ones. I've tried to do this.. - f.fields_for :referrals do |qf| - if qf.object.new_record? = render...

Help writing a fast complex query

Hi, I'm trying to write a query to get a courses information and the number of bookings and attendees. Each course can have many bookings and each booking can have many attendees. We already have a working report, but it uses multiple queries to get the required information. One to get the courses, one to get the bookings, and one to g...

How to detect certain face on the photo

I was just having a nap and then that crazy idea came into my head. Here it is. We have 2 different photos with face in each. How can we detect if there is the same person on that two photos? Is it possible to do that? If yes, can I do it with Java or PHP? What the way to do it? Any ideas? Maybe each face has a "algorithm" or something...