view

tableview new item detection

hi , i am working with iphone sdk and i got a tableview , when it detects a new item or when it remove an item, i need to do something special. thx ...

couchdb complex map reduce over multiple documents give back single json object

How to create a complex map reduce function in couchdb to span a view over multiple documents with same attribute names to give back a single json object? What is the most efficient way to manage this? Is a nested set/source algorithm suitable for couchdb (changes are very write intensive)? ...

How to add tabbarcontroller in viewcontroller in iphone

Hi, I am new to iphone development, i have created my project in view based application and i want to add tabbar controller in my view. I have added tabbarcontroller using interface builder in my view and i cannot see the tabbar in my view. Plz how can i add tabbarcontrolller in view. So plz guide me. thanks. ...

UINavigationController autoresizing views behavior

I've read in Apple's documentation about UINavigationController's resizing behavior and it hasn't been much of a problem until now. I have the following code to set up my UINavigationController's view: navController.view.frame = CGRectMake(0, 40, 320, 420); and this is sufficient until the view is obscured by a modal view, at which po...

How do I create a gauge in Android?

I'm looking for a view that I can put on an activity that displays as a gauge, with tickmarks, and allows me to set a value to change where the needle is pointing. Just like a speedometer! Thanks! ...

jquery $.Post doesnt change view. What do I do?

Hi all, I'm pretty new to MVC so this may seem like an obvious question, but when posting to my ActionResult, the ActionResult gets called, but the View doesn't change. What I'm doing is having a basic search page where a user can search my database and the results are returned and paginated. Here is javascript that calls that ActionR...

Android View.getDrawingCache returns null, only null

Hi, Would anyone please try to explain to me why public void addView(View child) { child.setDrawingCacheEnabled(true); child.setWillNotCacheDrawing(false); child.setWillNotDraw(false); child.buildDrawingCache(); if(child.getDrawingCache() == null) { //TODO Make this work! Log.w("View", "View child's drawing cache is null"...

Dynamically changing a WPF ListView between one that contains a GridView with column headers and another view that doesn't

I'm not quite sure how to go about this so any advice would be much appreciated. I have a ListView whose default implementation is using with column headers. At runtime in the program I would like to be able to click on a button at runtime to change the view so that the list view loses the GridViewColumn headers and implements a new st...

Visual Studio 2005 - cannot simply view an xml file?!

I'm going nuts trying to simply work with xml file in Visual Studio 2005. If I create a new *.xml file and add it to the project then a gray screen gets displayed instead of the file contents. This screen shows the message "This XML document is not well formed. It contains the following error: Root element is missing". It seems like th...

iphone view flipping: viewflips from top to bottom instead of right to left

Hello everyone i try to build a app that is in landsscape mode all the time. I did the usual stuff: plist added UIInterfaceOrientation / UIInterfaceOrientationLandscapeRight rotated the XIBs in interface builder with the little arrow in top of view. my code for launching: - (void)applicationDidFinishLaunching:(UIApplication *)applicati...

Question on Utility Application - iPhone SDK

Hello everybody, I have this application I made on a utility based app. How would I incorporate this app into a view based application so I can run the code from there.. Like 2 seperate projects in one. I basically want to open/show the utility app in my view based application when I press a button.. Is this possible?? ...

using cakephp, how do I display a series of data without using for each loops?

The application I'm building is a tennis draw, which has a list of matches organized by round. I've also given the matches a position number as a way to order them and manage matches that are at the top of the draw. In a 32 player draw there are 16 matches in the first round, with match positions ordered from 1 - 16. The draw is laid ou...

WPF CollectionViewSource in Custom Control misuse ?

Should you use CollectionViewSource in the WPF Custom Control's code behind? I'am asking because the CollectionViewSource.GetDefaultView(SOURCE) with .Filter set changes the view so that all instances of the Control have the same view. Doesn't it mean, that in the Custom Control's code behind, you should avoid use of CollectionViewSou...

Replace id with string in SQL view

I have two tables... groupid membership_list managerid ------------------------------------- 0 /0//1//2/ 2 1 /2/ 2 userid username ------------------ 0 ben 1 tom 2 dan I'd like to display a table to for example the user 'ben' that is a list of the groups they are a ...

How do you elegantly program ASP.NET MVC when the View needs more than one Model?

A View accepts one Model. But I need to draw HTML input controls for two models. An example will illustrate: I have a screen where I add Employees. After adding their first name, last name and so on, I need the user to choose a number of Companies the Employees could be in. The Companies are in one table. The Employees are in another. ...

Which Context to use in a activity class?

I have a class defined as public class viewGroups extends ListActivity Somewhere in the class I have objItem = new clsContactGroups(context); I am wondering what is advised to be used here? Which context? I know four choices, but maybe there are others... this this.getApplicationContext() this.getBaseContext() this.getParent() ...

Which is best to use, ViewHelper or Partial View?

I was creating a viewhelper because there is logic on the rendering of the content. But then I realize that I am hardcoding the html inside the viewhelper which is achievable also using the partial view. Many says that views should not have logic in it. But if i used viewhelper, i need to recompile the project if i need to change the sty...

Direct3D - How do I calculate Roll from View Matrix?

Hey guys, this one's been eating up my entire night, and I'm finally throwing up my hands for some assistance. Basically, it's fairly straightforward to calculate the Pitch and Yaw from the View Matrix right after you do a camera update: D3DXMatrixLookAtLH(&m_View, &sCam.pos, &vLookAt, &sCam.up); pDev->SetTransform(D3DTS_VIEW, &m_View);...

Moving the UITableView AccessoryView

I have a UIView which contains a UITableView. I customized the cells of the UITableview to display the cells as individual boxes which are a little thinner than the width of the table. One problem is that when I set the Accessory type of the table to UITableViewCellAccessoryDetailDisclosureButton, the arrow overlaps the right edge of t...

custom view with layout

ok, what i am trying to do is to embed a custom view in the default layout main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.lam.customv...