different

Custom Views in MVS with input names not-matching to Model property names.

We are using MVC in our application; the Views we are using get created by other team. The problem is that they use their own names for input HTML controls which are different from the input text-box names in the Model. I have a strong feeling that this issue had already been addressed somewhere but cannot find any references. Could anyb...

Subsonic result doesn't match query

Hello I'm running into a big problem here... I had a database in a hosting and everything was going fine. Now I've changed the database to another hosting and just one query is giving me problems. I'm getting results from a view and the result is nothing like the results produced by the other database even do the data is same and the vi...

Different named Markers on Google Android Map

Hi, i want to add many different markers on an android map. My code works good so far with the same overlay over and over again: mapOverlays = mapView.getOverlays(); drawable = this.getResources().getDrawable(R.drawable.marker); itemizedOverlay = new MyItemizedOverlay(drawable); OverlayItem overlayItem = new OverlayItem(geoPoint, "foo"...

steel browser installation steps in android emulator

how to install steel in emulator,does it support it,is it like installing a normal application please help me in this ...

jquery post and get request different on local intranet and live server

Hi, I have been developing an asp.net mvc application where i need to make large amounts of jquery post and get request to call controller methods and get back json result. Everything is working fine. The problem is i had to write different jquery post and get request url on local intranet(deployed by making virtual directory) and liv...

C++ struct sorting

I have a vector of custom Struct that needs to be sorted on different criteria each time Implementing operator < will allow only one criteria But I want to be able to specify sorting criteria each time I call C++ standard sort. How to do that? Please note it is better to be efficient in running time.. Thanks ...

How different protocols interact with eachother in Twisted

The scenario I want two different protocols interact with each other is as below: A and B is two different protocols. First A will interact with the server and retrieve some values. Only after A finishes retrieving the values , B will start to interact with the server. Now my problem is that is there an elegant way to initial B when A ...

how i can open different linux terminal to output differnt kinds of debug information in python?

Hi All, I need output different information to different terminal instances instead of print them in same output stream, say std.err or std.out. for example: I have 5 kinds of information say A-E need to be displayed on different terminal windows on same desktop, looks like [terminal 1] <- for displaying information A [terminal 2] ...

Jtree And Jpanel on JSplitpane

i want to display different Jpanel when different node is selected just like in a fileBrowser.My Jpanel has button controls.am using TreeselectionListerner and defaultMutableTreeNode.how can i display different panel for nodes in the same depth.each node corresponds to different objects .everyTime i create a node i pass the userObject ...

Different execution plan for similar queries

I am running two very similar update queries but for a reason unknown to me they are using completely different execution plans. Normally this wouldn't be a problem but they are both updating exactly the same amount of rows but one is using an execution plan that is far inferior to the other, 4 secs vs 2 mins, when scaled up this is cau...

Conditional mapping in Hibernate 3.0?

How to create mapping in hibernate that depends on the type property, insert/retrieve the data into/from proper column. Structure: TABLE COLUMNS: |TYPE | CHARACTER | DATE | TIME | NUMERIC| POJO: class Pojo { private int type; private Object data; ... } Examples: Insert/Update If the type is 1 we input the value to colum...

What is the difference between various implementations of dc?

dc is the Unix standard desktop calculator. AFAIK, there are different implementations (like Solaris or GNU for instance). What is the exact difference between these implementations and what is the minimal subset of operations you can be sure a dc implementation has? ...

10 different domain names with 2 php files only database query changes

i have 10 domain names which has 2 php files index.php, inside.php only query changes as per site id right now i am uploading 2 pages through ftp to 10 sites is there any easy way to do this? ...

How to set and map a Method in the Service file with endpoint elements and binding elements

Hi all, I have created a service file like OSService.svc in that i have two methods like one is FileUpload and FileDownload for e.g :- [WebInvoke(UriTemplate = "/fileupload/{fileName}", Method = "POST")] [OperationContract] void FileUpload(string fileName, Stream fileContents); same as Filedownload also. People you may know these meth...

How to connect 2 different spinners in Android 2.1

Hi guys, I am trying to create 2 different spinners in my main layout. This is how it works. Let's say the 1st spinner shows the different continents (e.g. America, Asia, Europe, etc.). Assume a user chooses Asia in the 1st spinner. My question is, how to make 2nd spinner to communicate with the 1st spinner? Meaning, the 2nd spinner i...

Different user profiles with django-profiles & django-registration

My models.py: USER_TYPES = ( ('D', 'Demo' ), ...

How to have different taxes applied to a configurable product in Magento (Depending on selected options)?

I have product (say a bottle of wine). I can sell it as an in bond item (no tax) or a duty item (attracts duty and VAT tax). How then can I apply this to a configurable product? I have set the tax class of duty simple product to a 'Taxable' product class. The in bond version has been set to 'None'. I have also setup the tax rule, whi...

How to approach a function that has slightly different behavior when called the first time?

This is a very general programming question that I just want to put out there and see if anyone has any thoughts on it. It shows up time and time again: I have a function somefunction() which is called a lot, but the very first time its called I want it to behave just a bit differently. Here's an example: first_time = true; somefunction...

tackle different types of utf hyphens in ruby 1.8.7

We have different types of hyphens/dashes (in some text) populated in db. Before comparing them with some user input text, i have to normalize any type of dashes/hyphens to simple hyphen/minus (ascii 45). The possible dashes we have to convert are: Minus(−) U+2212 &minus; or &#x2212; or &#8722; Hyphen-minus(-) U+002D &#45; Hyphen(-) ...

The way to maintain with git different hardware setups with a number of configs and a number of branches

I have the git repository where I am storing 4 different programs based on same code base. Some branches just have the different realization for some features. And others do completely different things(preparing the environment for calculation and calculation itself). There is no problem for me to make 4 different branches for it. But al...