i have template base.html and some children templates. I don't know how to set variables for base.html
for example if i have {% for u in users %}{% endfor %} where do I assign it to users? is there some parent view for all views?
Hi,
I am wondering if anyone can advise on the best way to add a FAQ page in iphone app. I would like to display a 'local' file (perhaps HTML) with local images into a web view. Essentialy to enable users access to FAQ within the app.
Any advice on whether to use HTML or any other way of doing this will be very helpful..
Thanks in advance..
mb
i have a uilabel and a uislider on a view. i want to set label's time using slider.range of slider is 00:00:00 to 03:00:00. means 3 hours.and intervel on slider is 0.5 minutes.also how to show.i want the timer runs even if application is closed.
I have a layout xml file named my_layout.xml, in which the root view's layout_width and layout_height has been specified as 200px.
<com.jlee.demo.MyLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="200px"
android:layout_height="200px">
If I used this xml to be included in another xml, and specify the layout_width and layout_height as 100px.
<include layout="@layout/my_layout"
android:layout_width="100px"
android:layout_height="100px"/>
What would be the real width/height of my_layout?
Im using c#.net. I have an xml file that contains many nodes. I have got the xml file into a tree view. Now when I select a particular node in the treeview, I should be able to display all its ancestors in a multiline text box. Please suggest me to do this job.
Could somebody please tell me what is "Memory Page Out Rate".
I have seen this in "HP Open View" server monitoring tool and tried googling it.
Would appreciate if some expert can clarify.
If page out rate is too high as 200+ per second, can it crash the server?
Thanks in advance
I am creating an web application for my tae kwon do club.
People are able to register online for a tournament.
After the registration deadline the web application generates a dendrogram. Something like this:
I am wondering now how to draw it.
Because of the fact that there are my weight and age categories i have to draw them dynamicly for each group.
What is the easiest way to draw this inside a MVC view?
I'm doing my first steps in MacRuby. Does anyone know how I can add a custom Toolbar to my Cocoa/MacRuby application, which will accept "regular" items for e.g. switching the view (see http://www.stevestreeting.com/wp-content/uploads/2011/06/SelectableToolbarDemo001.png).
I've read some tutorials and I guess I have to create a custom delegate for the Toolbar and then connect it via the Outlets window, but how does the myCustomDelegate.rb have to look like?
Thanks a lot!
Cheers
Hi,
I want to create a view where all 5 of my taxonomy terms are displayed and it then displays the latest node published but this is limited by 1. For Example:
Tax Term 1
Latest node published
Tax Term 2
Latest node published
etc etc
Currently I'm grouping by taxonomy term so it's displaying all nodes published then sorted by published date desc. I can't quite figure out how to limit the nodes to only show one item per taxonomy term.
Any help would be greatly appreciated.
hi,
I was considering to use Faceted Search for my Drupal website but I noticed I have to set additional database privilegies. (And I usually don't have access to mysql terminal on the hosting servers.
http://drupalcode.org/viewvc/drupal/contributions/modules/faceted_search/README.txt?view=co
Consequently, I cannot use Faceted Search on these servers....
thanks
Hi,
I am getting spreadsheet xml from a code logic (Flex Grids to spreadsheet xml).
I have 3 worksheets (A, B, C) in that spreadsheet xml.
I am opening this spreadsheet xml in Excel.
I want to view worksheet B when I am opening the spreadhseet xml in Excel.
Is there any tag/code, I need to add so that worksheet B will be visible at initial?
I can add that code in code logic
Thanks ... Atul
Hi,
I have a WPF ListView that opens a certain window when double clicked on a certain item inside the list view, but I have a problem. When I double click the GridViewColumn, that also opens up a certain window.
Is there a way to detect if the sender is a gridviewColumn or a listView item?
Thanks
can i call helper functions inside controller classes?
let's say i have this controller with the _open_form method
class User extends Controller {
function _open_form($action){
print_r(form_open($action));
}
}
i tried echoing out the result of form_open()
but it returns null. it seems that helper functions can't be called inside controllers
if your wondering why i need to use it inside the controller instead in the view
because we are required to use the given template parser xD
I was reading an InfoQ article on Composite Oriented Programming earlier on:
http://www.infoq.com/articles/Composite-Programming-Qi4j
I was interested in finding out whether anybody is currently using (or has used) the Qi4j framework at all?
How does it compares to using a traditional dependency injection framework such as Spring for wiring classes together. Is the resulting object graph (based on mixins rather than classes) easier to deal with from a maintenance point of view?
I'm looking for a way to filter out methods which have the unsafe modifier via reflection. It doesn't seem to be a method attribute.
Is there a way?
EDIT: it seems that this info is not in the metadata, at least I can't see it in the IL. However reflector shows the unsafe modifier in C# view. Any ideas on how it's done?
Thanks!
Hello,
Im working with quite big xml file (~20-40 MB) and I'm using notepad++.
Is there any better application to view and analyze such a big xml files ?
thanks for help
Is it possible to give a UIToolBar a custom background from an image rather than the usual tinted blue/black fade out?
I've tried giving the view a background and setting the opacity of the UIToolBar but that also affects the opacity of any UIBarButtons on it.
Hi,
since in mysql datetime field is represented as string (i'm not sure how it works internally), wouldn't be from performance point of view faster to store date as unix timestamp? I don't need to use any mysql native date functions, i'm going for performance of sorting and selecting data.
if there was an index for that column, would be difference between int and datetime?
Thank you
I have a memory leak when i use a UITextView but I don't understand why :
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(20, 160, 280, 150)];
textView.text = @"Hello World";
textView.editable = FALSE;
[self.view addSubview:textView];
[textView release];
Is someone could help me? :S
Hi there.
I am trying to display a fullscreen video on the iPhone and overlay it with an OpenGL ES view. So basically, I want a video playing in the background, while there are OpenGL graphics being drawn on top of it.
How do I achieve this and is it even possible?
Thanks for your help!
Florian
Hi all,
I noticed that I cannot add stylesheets on any page. They must be added to the master page.
I already have about 15 stylesheets in the master view, which seems like overkill, since only some of the pages use a certain stylesheet.
I imagine I could reference the file via javascript (although, I can't think of how off the top of my head), but it would be really nice to not have to use any.
Hi,
I have successfully setup Subversion repositories using SVNParentPath. But I would like to control the view of repositories list based on user access permission. Example User A only can access repository A and repository B. So when he browse to SVN url he only can see repository A and repository B. Others repositories are invisible for him.
is that anyway to work it out?
Title is quite self explanatory, but I have some animation being done in a loop triggered by UIDisplayLink. However, as soon as I scroll a UIScrollView I have added to my view hierarchy, the animation stops immediately, only to return again when scrolling has completely stopped and come to a standstill....
Anyway to cancel this behaviour?
I set a UIImageView to 70x70 pixels. In the actual view they look 70px high and 30 wide. This is when there is no source UIImage set and with a background color so I can see it's layout. However, when I do set a UIImage to it the layout does not change, remains portrait.
Is there something I am overlooking that affects the layout dimensions of a UIImage or UIImageView?
Thanks.