I've read this post about mocking location with custom provider, but I am looking for a way to mock the location during a presentation, is that possible?
How can I create a button that looks like the one found in the screenshot below on an iPhone with the 3.0 SDK? It's a button that shows when connecting to a host iTunes library from the iTunes remote.
Is it a case of writing a custom control or is this a stock style?
Is it possible to change appearence of "more" item in TabBarController? For example can I add custom views and change layout of tableView containing "more" controllers list?
Question: epoll man page has some pointers when using epoll with an 'event cache'. But, why would you need to maintain an event cahce at all - Isn't this the same as what epoll is supposed to be doing?
Is it to avoid making multiple epoll_wait calls which might be slower than managing the events in user space?
Is it to implement a custom 'priority' scheme over the cached events?
Background: I'm trying to understand the strengths/shortcomings of epoll and its applicability to different situations
Hi,
if I put a custom class in session, then in an action method I get an instance of that class from session, and populate some fields, I noticed that when a different controller gets that class from session, those fields are populated. Even though after the first call didn't save the updated class back in session.
is this typical behavior for session objects?
I thought I had to use keyword 'static' on the class in session for this to happen
thanks
How do you get each item in the ForeignKey field in a list, for example:
class Delegate(models.Model):
excursion = models.ForeignKey(Excursion, limit_choices_to = {'is_activity': False}, related_name='excursion', null=True, blank=True)
Template:
{% for object in formset.excursion_set.all %}
{{ object.lable }}
etc
{% endfor %}
My reason is that I don't want the options to display as a dropdown, but in a custom way that I will style etc.
Hi,
Whenever I try to load the following part in tag on firfox browser, I get the message as "$ is not define". May I know the reason? I'm trying to load the jquery.js file before loading any custom script after CSS part.
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
hello.
Is it possible to have scoped macros using custom defined macros through boost wave?
I know it should a possible with C++0x however I am working with regular C++.
If it is possible, can you provide link or reference how to accomplish this?
Thanks
Hi All,
I'm creating a custom master page for a MOSS publishing site. The designers have come up with this idea for the fly out menu...
which uses graduated/different backgrond and text colours for each menu option.
Does anyone know how to accomplish this?
hi,
i am using core plot framework,when i run following code in viewdidload gives crash.the view is as custom view...
graph = [(CPXYGraph *)[CPXYGraph alloc] initWithFrame:CGRectZero];
CPLayerHostingView *hostingView = (CPLayerHostingView *)self.view;
hostingView.hostedLayer = graph;**(gives error)**
what i have to do? any help please?
I'm creating a custom Layout for android.
The layout implementation is exactly the same, but once I need to extend from RelativeLayout, and once from LinearLayout.
class Layout1 extends LinearLayout {
// methods and fields
}
class Layout2 extends RelativeLayout {
// the same EXACT methods and fields
}
How can I use inheritance to avoid DRY and implement my methods once.
In Visual Studio 2010 we have MSBuild for C++ project. Also we can add additional custom properties files "*.props" to projects, which are just MSBuild scripts.
Is it possible in imported "some.props" file know its directory?
for example there is "project.vcxproj" file and "common.props" file.
I would like to write something:
<IncludeDir>$( [and something for common.props file directory here] )\include</IncludeDir>
What should I write there?
I am writing a custom error handling/reporting function for php file upload and I noticed that the error codes returned is one of numbers 0 to 8 except 5.
Is this a typo in the source I am using or is it really this way? And if it is so, I am curious why they have skipped number '5'.
Thanks.
I need to change the scroll bar color in Firefox. Using CSS I am able to change scroll bar color in IE. It works fine. But I cannot see the change in Firefox.
I dont want any custom scroll bars. I want to apply the color to the default scroll bar only.
How can I protect my web server, if I run custom users code on server. If any user can submit his python source on my server and run it.
Maybe some modules or linux tools for close any network and hardware activity for this script.
Thank's all for help!
I've got a legacy app running a third-party ecommerce system under IIS6. Some spammers recently discovered a bad security vulnerability in one of the store's forms, which are allowing them to send arbitrary emails from our system. Unfortunately, this store "feature" is built into the default.aspx page's code-behind and I have no way to disable it without shutting down the store.
How can I filter out URL request with a given querystring parameter? ie, I want to filter out requests to:
http://www.mysite.com/store/?id=SendSpam
based on the "SendSpam" string.
Well I have browsed through Application events in Excel 2007 however I can't find any event generated on a cell click.
I can't use a double click event at the moment due to application constraints.
Is there a way I can create a custom click event and attach it to a sheet for generating a cell click event.
Which is a good .Net based CMS out there (for creating a corporate website). I have used Kentico CMS for some time, and am moderately happy with it.
However, is there anything better out there. I would like the ability to develop my own custom asp.net templates for various page types and install them.
Hi,
Whenever I try to load the following part in <head> tag on firfox browser, I get the message as $ is not define.
May I know the reason? I'm trying to load the jquery.js file before loading any custom script after CSS part.
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
Consider I have an array of elements out of which I want to create a new 'iterable' which on every next applies a custom 'transformation'. What's the proper way of doing it under python 2.x?
For people familiar with Java, the equivalent is Iterables#transform from google's collections framework.
I have a UITableView with two custom cells and each of them has a subview with a UITextField inside it. I have tried adding a UIButton on top of the UITableView and have it resignFirstResponder but that just means you won't be able to tap anywhere else - not even on the UITextFields to enter text.
How do I make it so if I tap outside those two UITextFields, I can call resignFirstResponder, so the user can get back to the other cells?
Thanks
Hi there, I'm a new in Android and Java and I have the following problem. I want to change standard resources, such as button background, programatically to allow applications using standard buttons be displayed with custom background. My problem is - how shall I identify the path for retrieval resources on phone or emulator? And if we have permissions to access to those resources?
I have the command language part sorted out, I'm looking for good sample on how to build a custom console in Cocoa. Need features like copy/paste, command stack, ctrl-z processsing etc. Thanks in advance.
i have a page consisting of devexpress gridview control with 4 columns and 4 asp.net text boxes.
on selecting a row in gridview ,it should update the 4 textboxes with the values of the row selected.
so i was assigning the value of the rows of the grid to the text box in the custom callback event of the grid and also the value gets assigned to the all textboxes's text property but it doesn't updates the textbox value in the UI screen.