This question got me re-thinking about something that always bothered me:
Does Java need tuples?
Do you feel the lack of them in your day-to-day work? Do you think tuples would simplify otherwise complex data structures you find yourself implementing?
I am building an application that will function as a client-server application, and also as a disconnected client application. I will be using WPF (browser app for client-server application).
When interacting with the server's database, I will need to connect using WCF web services. When connecting with the localized database, I will need to connect using the local db's data access layer.
What methods/patterns exist for this sort of architecture?
I am looking for behavior tree implementations in any language, I would like to learn more about how they are implemented and used so can roll my own but I could only find one
Owyl, unfortunately, it does not contain examples of how it is used.
Any one know any other open source ones that I can browse through the code see some examples of how they are used etc?
EDIT: Behavior tree is the name of the data structure.
I would like the rows of my GridView to have strikethrough based on a bound data value called IsObsolete. I tried to do this:
<RowStyle BackColor="#EFF3FB" Font-Strikeout='<%# Bind('IsObsolete') %>' />
But obviously this doesn't parse. I'd rather not do this in GridView.DataBound(). Any other ideas?
Using Parsley,
I have a service that I access through a
[Command(selector='list')]
public function getRssFeed( msg:RssEvent ):AsyncToken
{
return service.list() as AsyncToken;
}
when I point to the "Real" RssService, everything works as expected. My problem is when I point to the "Mock" RssService. I can't figure out how to fake a AsyncToken with some dummy data return... does anyone knows how to do this ?
Anyone know of a gem that will allow you to obscure/sanitize data?
Usecase: Download a production database, run some sanitation so that real customers won't get emails, cards charged etc.
Hi,
I have been searching for a way to get the json data from a URl (for example: http://search.twitter.com/trends.json) and display it in a listview. Couldnt get a perfect example to get it done. Can anyone plz help me out by getting the solution and providing a good example of how to do it...
hello, i have some scientific data that i want to insert into oo.org calc. when i do this, instead of displaying 0.35678 in a cell it displays 0.35 (only the first 2 digits after the decimal). but on clicking the cell, the formula bar shows the correct value...please help
I am using the below piece of code for SQL Bulk copy
using (SqlConnection con = new SqlConnection(strConString))
{
con.Open();
SqlBulkCopy sqlBC = new SqlBulkCopy(con);
sqlBC.DestinationTableName = "SomeTable";
sqlBC.WriteToServer(dtOppConSummary);
}
Can anyone provide me the equvalent code using Data access block Enterprise library
Hi,
For my question lets consider the following sample table data:
ProductID ProductName Price Category
1 Apple 5.00 Fruits
2 Apple 5.00 Food
3 Orange 3.00 Fruits
4 Banana 2.00 Fruits
I need a query which will result in the following data set:
ProductID ProductName Price Category
1 Apple 5.00 Fruits
3 Orange 3.00 Fruits
4 Banana 2.00 Fruits
As you can see ProductID 2 has been omitted/ignored because Apple is already present in the result i.e. each product must appear only once irrespective of Category or Price.
Thanks
Hi, I am trying to implement the following :
1 First column of datagrid has a checkbox.
2 Select checkboxes, and then delete the datagrid column.
3 Dynamically, add checkbox when row is added dynamically.
4 Do not show check box if now data in row.
Can someone give some guidance ?
Any ideas if the recent Toyota computing errors had something to do with the fact they where using an object orintated approach then took a data orientated approach thus causing user interface errors ?
Studying programming languages with in interface robotic design and wondered if the car computing glitch Toyota has been having could have something to do with using a different programming approach with out reprogramming the whole system from scratch.
I am using enterprise library DATA access block in my application and now i want to Encrypt the connection string and store it in the Config file and consume it in my application after decrypting the same.
How can i do this
I have a cck field that needs to allow a different number of values depending on the role of the currently logged in user.
I'd like to find where the "number of values" data is stored for a cck field so that it can be dynamically changed when the node edit form is displayed.
Does anyone know (ideally, with a reference), whether the VS2010 release of LinqToSQL or EntityFramework v4 will support queries over the SQL 2008 spatial data types?
I'm studying security, and I would like to know: in Windows or Unix based OS environment, is there a way for a malicious program to copy all the content of the computer's memory?
My worry is about a program that can get my decrypted data loaded in memory. And how to avoid it.
I have noticed that when you view PDFs in google docs the PDF viewer renders the PDF file into PNG images.
I was wondering if you could use Google Data API to upload a PDF and get the URLs of the rendered PNG files?
I have never used the google API or really had the extra time to learn it, but if it help me do this it will be well worth the extra time.
I have a Browser and I want to display history & favorites of user on webbrowser on button_Click event. Can I accomplish this by using treeview in my form? if not what other way i can use. Data about History and Favorites is stored in SQL server database.
Thanks,
Ani
Hi All,
I would like to store "2010-03-26 10:13:04 Etc/GMT" value in column of type datetime.
when i try to insert it i got exception
SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '10:13:04 Etc/GMT', at line 1
how to insert data time with time zone.
Thanks in advance.
please help me its urgent.
Before Entering data into a database, I just want to check that the database doesn't have the same username in the database already.
I have the username in SQL set as a key, so it can't be duplicated on that end, but I am looking at finding a more user-friendly error message then "KEY already exists".
Is there are simple way to check if the variable value already exists in a row?
Thanks!
hello,
Can someone elaborate the difference between Control template and Data template in wpf?
It would be great if an example of how each can be used in different scenarios can be provided.
I'm learning SQL Server Compact for a program I'm writing that requries a local database. I have multiple tables, each with different columns and I'd like to mark each column as being a certain type (not a data type, just an integer tag) to let the program know what to do with it. I'm clueless about SQL. How does one do this?