Hello everybody,
I implemented a custom DateTimePicker. On the DateTimePicker there is a button. In the examples I've found it's width is set to 16. This is working but I would like to have a dynamic approach.
So, is there a way to get the size of this button or is there a general way to get information about .Net-Control sub elements like size etc.?
Trying DateTimePicker.Controls didn't help me (it's empty).
I need to parse potentially large XML files, of which the schema is already provided to me in several XSD files, so XML binding is highly favored. I'd like to know if I can use JAXB to parse the file in chunks and if so, how.
I am trying to center a paragraph tag with some text in it within a div, but I can't seem to center it using margin: 0 auto without having to specify a fixed width for the paragraph. I don't want to specify a fixed width, because I will have dynamic text coming into the paragraph tag and it will always be a different width based on how much text it is.
Does anyone know how I can center the paragraph tag within the div without having to specify a fixed width for the paragraph or without using tables?
I am using CakePHP for a price-comparison website.
I have a table products with fields: id, pride_regular, price_action.
I would like to combine the fields price_regular and price_action into a dynamic field: price. The lowest value of these two fields should be the value of the new price field. Also I want to order on it Ascending.
Should I use a custom MySQL-query?
Hello,
How can I get java classes from an xml file?
In this situation, I don't have an XML schemma and this way I cant't use JAXB, Castor or other xml binding API as far as I know.
Hello,
I'm working on a ColdFusion dynamic website. For this website, there are a lot of CFCs and a lot of functions within each CFC. Would it be more efficient to store an instance of the CFC in an application variable, then to instance each CFC separately on each page load.
For each page, at most 2 separate CFCs get called. I'm also interested in how performance will be effected when requests increase (Stress).
Thanks!
Hello every one, I have components that are bind to a binding source,
when I add a new row in bindingsource by bindingsource.addnew(), all of them display 'System.Data.DataRowView' as text.
what can I do as a solution?
I am trying to load nib at run time. I am using Button control & binding it to one method & outlet.
But problem is that when i load it run time it not display button.
Also When i click on position where i placed button in interface builder, it executes binded method. I don't understand what is happening ?
There are two types of query parameters binding in the Hibernate Query. One is positioned parameter and another one is named parameter.
Can I use these two parameters in one Query?
This is kind of an academic question, so feel free to exit now. I've had a dig through Stack for threads pertaining to URL/Controller mapping in MVC frameworks - in particular this one:
http://stackoverflow.com/questions/125677/php-application-url-routing
So far, I can ascertain two practices:
1: dynamic mapping through parsing the URL string (exploded on '/')
2: pattern matching matching url to config file containing available routes
I wanted to get some feedback (or links to some other threads/articles) from folks regarding their views on how best to approach this task.
I've a dynamic web app in Eclipse that is using tomcat s a runtime environment.
I cannot add javadoc path tomcat Servlet API
as appears, the edit button is always disabled!
![alt text][1]
[1]:
Hello,
i need to build the same source tree twice,
1 - with normal cflags to build the project binary
2 - with cflags plus -fPIC to build a static library that would be some sort of SDK to develop project dynamic modules.
Using only one Makefile, what is the best approach to accomplish this?
It would be nice to do some sort of :
all: $(OBJECTS)
lib_rule: $(OBJECTS)
CFLAGS += -fPIC
.cpp.o:
$(CC) -c $< -o $@ $(CFLAGS)
But obviously it can't be done.
Thanks
I'm trying to designing a class and I'm having issues with accessing some of the nested fields and I have some concerns with how multithread safe the whole design is. I would like to know if anyone has a better idea of how this should be designed or if any changes that should be made?
using System;
using System.Collections;
namespace SystemClass
{
public class Program
{
static void Main(string[] args)
{
System system = new System();
//Seems like an awkward way to access all the members
dynamic deviceInstance = (((DeviceType)((DeviceGroup)system.deviceGroups[0]).deviceTypes[0]).deviceInstances[0]);
Boolean checkLocked = deviceInstance.locked;
//Seems like this method for accessing fields might have problems with multithreading
foreach (DeviceGroup dg in system.deviceGroups)
{
foreach (DeviceType dt in dg.deviceTypes)
{
foreach (dynamic di in dt.deviceInstances)
{
checkLocked = di.locked;
}
}
}
}
}
public class System
{
public ArrayList deviceGroups = new ArrayList();
public System()
{
//API called to get names of all the DeviceGroups
deviceGroups.Add(new DeviceGroup("Motherboard"));
}
}
public class DeviceGroup
{
public ArrayList deviceTypes = new ArrayList();
public DeviceGroup() {}
public DeviceGroup(string deviceGroupName)
{
//API called to get names of all the Devicetypes
deviceTypes.Add(new DeviceType("Keyboard"));
deviceTypes.Add(new DeviceType("Mouse"));
}
}
public class DeviceType
{
public ArrayList deviceInstances = new ArrayList();
public bool deviceConnected;
public DeviceType() {}
public DeviceType(string DeviceType)
{
//API called to get hardwareIDs of all the device instances
deviceInstances.Add(new Mouse("0001"));
deviceInstances.Add(new Keyboard("0003"));
deviceInstances.Add(new Keyboard("0004"));
//Start thread CheckConnection that updates deviceConnected periodically
}
public void CheckConnection()
{
//API call to check connection and returns true
this.deviceConnected = true;
}
}
public class Keyboard
{
public string hardwareAddress;
public bool keypress;
public bool deviceConnected;
public Keyboard() {}
public Keyboard(string hardwareAddress)
{
this.hardwareAddress = hardwareAddress;
//Start thread to update deviceConnected periodically
}
public void CheckKeyPress()
{
//if API returns true
this.keypress = true;
}
}
public class Mouse
{
public string hardwareAddress;
public bool click;
public Mouse() {}
public Mouse(string hardwareAddress)
{
this.hardwareAddress = hardwareAddress;
}
public void CheckClick()
{
//if API returns true
this.click = true;
}
}
}
I would like my iPhone app to get dynamic content off the net. This content should be managed using a CMS. I would like to know in particular if I can setup Drupal or Joomla or other CMS as a backend for my iphone app to get the content.
Any advice on how this can be achieved would be helpful.
I am completely new to setting up/using CMS.
Hi Experts,
I have a list of int values some thing like below (upper bound and lower bounds are dynamic)
1, 2, 3
4, 6, 0
5, 7, 1
I want to calculate the column values in vertical wise like
1 + 4 + 5 = 10
2 + 6 + 7 = 15
3 + 0 + 1 = 4
Expected Result = 10,15,4
Any help would be appreciated
Thanks
Deepu
I am trying to deploy a simple SOAP 1.2 web service to WebSphere v8. My service is
@Stateless
@WebService(serviceName = "MemberServices", portName = "MemberPort", endpointInterface = "gov.virginia.vita.edmsvc.ws.MemberWS")
@BindingType(value=SOAPBinding.SOAP12HTTP_BINDING)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class MemberBean implements MemberWS, MemberBeanLocal {
....
}
However the server is throwing the following error:
"This implementation does not contain a WSDL definition and is not a SOAP 1.1 based binding. Per the JAXWS specification, a WSDL definition cannot be generated for this implementation.error"
this same service deploy successfully on Glashfish and JBoss, any ideas ?
Hi
Any idea how to calculate the height of auto generated child controls in fixed-page... When using ActualHeight it give 0.0....
I need to to calculate height of the dynamic content in the fixed page.
Thanks and Regards
I have the code in one of my flex file used as labelFunction in a DataGrid. When I run the FlexPMD to do the code review , it generates objection about the dynamic type object used in method signature "public function getFormattedCreatedTime(item:Object, column:DataGridColumn):String", it suggests to use strongly type object. Does anyone how to rectify it?
public function getFormattedCreatedTime(item:Object, column:DataGridColumn):String {
var value:Date=item[column.dataField];
return dateFormatter.format(value);
}
]]
Thanks
I'd like to do had a dynamic number of one start/end time pairs passed to a function as an input parameter. The function would then use the list instead of just one start, and one end time in a select statement.
CREATE FUNCTION [dbo].[GetData]
(
@StartTime datetime,
@EndTime datetime
)
RETURNS int
AS
BEGIN
SELECT @EndTime = CASE WHEN @EndTime > CURRENT_TIMESTAMP THEN CURRENT_TIMESTAMP ELSE @EndTime END
DECLARE @TempStates TABLE
(StartTime datetime NOT NULL
, EndTime datetime NOT NULL
, StateIdentity int NOT NULL
)
INSERT INTO @TempStates
SELECT StartTime
, EndTime
, StateIdentity
FROM State
WHERE StartTime <= @EndTime AND EndTime >= @StartTime
RETURN 0
END
Hi guy,
In ruby ActiveRecord doesn't provide dynamicbinding for update and insert sqls, of course i can use raw sql, but that need maintain connection, so i want to know if there is simpler way to escape update or insert sql before executing like code below:
ActiveRecord::Base.connection.insert(sql)
i think i can write code by gsub, but i know if there has been a ready method to do it.
thank you very much, and Merry Christmas for you all.
I am using linq to sql
Currently i am binding gridviw through linq which query written in business logic call .
i have extract record through query in business logic class and i want to bind that particular data to gridviw and return data .
how to retrun data which type is array.
code is mention below:
CMSBusiness.DataClasses1DataContext db = new DataClasses1DataContext();
var cate = from p in db.categoryTables
select new
{
categoryId=p.categoryId,
categoryName=p.categoryName,
categoryDesc=p.categoryDesc
};
how to return value and bind gridview , Please suggest
From the book "Groovy and Grails recipes" I'm using the following code snippet:
String HelloLanguage = "def hello(language) {return \"Hello $language\"}"
However, I get a compiler error "You attempted to reference a variable in the binding or an instance variable from a static context." because language can't be bound. What is wrong?