How can I use UIToolbar as UINavigationcontroller for UItableview?
I have to show UIToolbar in place of UINavigationcontroller.
Is there any sample for this?
HI, I have one global generic exception handler(catch ex as Exception) for all unhandled exceptions from application.
But in debug mode(app runs from VS) I don`t want that exceptions go to this global handler.
Better for me is when VS stops app on place when exception occurs.
How can I do this, or is there some better approach for this?
thanks
Hello,
Besides using Appcelerator's Titanium Desktop, are there other approaches to integrating Javascript and Ruby/Python into cross-platform desktop applications? Just trying to get a sense of the landscape here. From searching the web, it seems Titanium may be leading the charge in terms of this type of integration. I wasn't able to find references that suggest you can do something similar in Adobe AIR.
I am interested in building desktop applications that exploit Protovis and possibly other Javascript interactive vis packages for the UI. At the end of the day, I can go the web app route if need be, but being able to develop desktop apps is helpful.
Would appreciate your perspective on this...
Chris
Hello
How kan I insert text/code at the cursors place in a div created by NicEdit?
I've tried to read the documentation and create my own plugin, but I want it to work from without the toolbar (Modal Window)
Terw
I've set up a CRON to call a URL in Kohana 3.
php /home/user/public_html/index.php my/route/in/bootstrap.php
It seems to access the URL fine.
However, I have received this error (send back in an email that my host sends per CRON)
Undefined index: HTTP_HOST
SYSPATH/classes/kohana/url.php [ 40 ]
Source of url.php
Which is in a Kohana system file. Is this because the CRON job is not sending HTTP headers?
How would I fix this and get it to work (hopefully without hacking the core files).
Or am I doing the CRON wrong?
I get this error when running a number of tests in seleniums Bromine, The selenium RC version 1.0.2 outputs this:
WARN - GET /selenium-server/driver/?cmd=testComplete&1=&2=&sessionId=1274d41621c64fc08c1e7ea0a58f260b HTTP/1.0 java.lang.IllegalStateException: unexpected command json={command:"open",target:"/Library/Security/Login.aspx?ReturnUrl=%2fIndex.aspx",value:""} in place before new command selectWindow could be added at org.openqa.selenium.server.CommandQueue.doCommandWithoutWaitingForARe
sponse(CommandQueue.java:121)
Any ideas
I need to invoke an initial GET HTTP request with Basic Authentication. This would be the first time the request is sent to the server and I already have the username & password so there's no need for a challenge from the server for authorization.
First question:
1) Does NSUrlConnection have to be set as synchronous to do Basic Auth? According to the answer on this post, it seems that you can't do Basic Auth if you opt for the async route.
2) Anyone know of any some sample code that illustrates Basic Auth on a GET request without the need for a challenge response? Apple's documentation shows an example but only after the server has issued the challenge request to the client.
I'm kind of new the networking portion of the SDK and I'm not sure which of the other classes I should use to get this working. (I see the NSURLCredential class but it seems that it is used only with NSURLAuthenticationChallenge after the client has requested for an authorized resource from the server).
I had a crazy (but so crazy that it just might work) idea where every element on a page is created in javascript but given an ID which is a hash of its path in the DOM. So instead of searching through the DOM to find an element, you hash the path and then getElementById() with that hash. Problem with this is getting the path might be more expensive than searching the DOM in the first place. Any ideas how this could be done or if it is just plain stupid?
I have been having issues trying to return distinct records from a subsonic3 query using VB. My base query looks like so:
Dim q As New [Select]("Region")
q.From("StoreLocation")
q.Where("State").IsEqualTo(ddlState.SelectedValue)
q.OrderAsc("Region")
This returns duplicates. How can I add a distinct clause in this to return distinct records? I have been trying to place around with Contraints, but to no avail.
Thanks in advance
HR
With Intel's launch of a Hexa-Core processor for the desktop, it looks like we can no longer wait for Microsoft to make many-core programming "easy". I just order a copy of Joe Duffy's book Concurrent Programming on Windows. This looks like a great place to start, though, I am hoping some of you who have been targeting multi/many core systems would point me to some good resources that have or would have helped on your projects?
What factors dictate throwing an exception if argument is null (eg if (a is null) throw new ArgumentNullException() ), as opposed to checking the argument if it is null beforehand.
I don't see why the exception should be thrown rather than checking for null in the first place? What benefit is there in the throw exception approach?
This is for C#/.NET
Thanks
Hi, I've got Enum:
public enum ObjectType
{
Country=0,
Region=1,
Province=2,
City=3,
Hotel=4
}
I have two applications in two language versions, and this Enum is displaying in some place, so depends of language version I wanna displaying correct version of Enum
in german version instead Country Land etc.
This Application are using the same websercice which has declaration of this enum.
For inspecting all events posted to the views of the window, I want to make a subclass of UIWindow and make that -keyAndVisible in the app delegate.
However, my project already came with an nasty MainWindow.xib file ;-) so I find it hard to do that now, since that nib guy is creating the window. Is there any way I can get rid of this MainWindow.xib? Or is there another way to have an subclass of UIWindow in place?
I have a problem where I have to add thirty-three integer vectors of equal length from a dataset in R. I know the simple solution would be
Vector1 + Vector2 + Vector3 +VectorN
But I am sure there is a way to code this. Also some vectors have NA in place of integers so I need a way to skip those. I know this may be very basic but I am new to this.
I have a contentEditable div.
Let's say the user clicks a button that inserts HTML into the editable area.
So, they click a button and the following is added to the innerHTML of the contentEditable div:
<div id="outside"><div id="inside"></div></div>
How do I automatically place the cursor (ie caret) IN the "inside" div?
Worse. How can this work in IE and FF?
Hello!
I have a UIButton with text "Explore the app" and image ()
In Interface Builder it looks like:
[ (>) Explore the app ]
But I need to place this image AFTER the text:
[ Explore the app (>) ]
How can I move the image to the right?
Hi,
is there a way to evaluate Smarty Code inside an existing Smarty template? For example, I may have the following construct:
smartyTemplate.tpl
<body>
<div id="dynamicPart">
{$valueFromDatabase}
</div>
</body>
Whereas the Smarty variable $valueFromDatabase contains another Smarty Template which I would like to be inserted in place of the variable and then evaluated as a template (with all the logic expressions in replacements neccessary).
Hello everybody,
There is a lot of configurable information for a web-site:
UI messages
Number of records used in pagination & other UI parameters
Cache duration for web-pages & timeouts
Route maps & site structure
...
There are many approaches to store all this information also:
AppSettings (web.config)
Custom sections (web.config)
External xml/text files referred from web.config
Internal static class(es) of constants
Database table(s)
...
What approaches do you usually choose for your tasks & what approaches do you find unsuitable?
Thank you in advance!
I'm trying to load on the fly on the iPad/iPhone and notice that I cannot place a div above this. I put the overlay in the html so that it's generated on page load and not added via javascript and the video when its created is absolutely positioned below this element. This works on a PC, I'm wondering if since it was created via js that the iPhone OS is overriding the z-index and forcing to the top?
Also is there a way to override the default "cannot play icon", the one with the slash, and show a loading animation instead? This would solve my issue via another route.
My last option would be to loaded all the video tags via js on page load and have them layered on top of each other for the iPad/iPhone? Since the iPhone OS won't load any video until requested would this work?
I also am having an issue with the iPhone and showing the "poster" attribute that is set on the video tag.
I need to secure a simple jersey RESTful API in a Tomcat 6.0.24 container. I'd like to keep the authentication with Basic Authentication using the tomcat-users.xml file to define the users and roles (this is for now, like I said its small).
Now, for authorization I'd like to be able to use the JSR 250 annotations like @RolesAllowed, @PermitAll, @DenyAll, etc.
I cannot for the life of me figure out how to wire this all up together.
I really don't want to go spring-security route, since I need something very simple at the current time.
Can someone point me in the right direction.
Can someone recommend me a package similar to JCollada for 3d rendering that is based on JOGL or point me to a place where I can obtain JCollada? The original site for JCollada has a SVN link that is no longer working (empty svn repositry).
Someone on the Herding Code podcast No. 68, http://herdingcode.com/?p=231, stated that IOC containers had no place with Python or Javascript, or words to that effect. I'm assuming this is conventional wisdom and that it applies to all dynamic languages. Why? What is it about dynamic languages that makes IOC containers unnecessary?
I'm trying to place my own theme settings into a drupal subtheme. i've used the forms API in theme-settings.php but they are not showing up in admin/build/themes/settings/$mytheme. my theme-settings.php is uploaded here in case you'd like to see it.
what it does is choose vocabularies for categories and tags, making it easier to port wordpress blogs to drupal.
Hello,
I want to test my routes in unit tests. But Areas is not working in my unit tests.
Is it possible to test ASP.NET MVC 2 routes for Areas?
I am using this code
[SetUp]
public void SetUp()
{
this.routes = new RouteCollection();
MvcApplication.RegisterRoutes(this.routes);
}
#endregion
private RouteCollection routes;
[Test]
public void Should_Navigate_To_AdminUser_Controller_EditUser_Method()
{
HttpContextBase fackeCtx = CreateFackeContext("~/Admin/User/Edit/3");
RouteData routeData = this.routes.GetRouteData(fackeCtx);
Assert.IsNotNull(routeData,
"Route is not defined!");
Assert.AreEqual("Edit",
routeData.Values["action"]);
Assert.AreEqual("User",
routeData.Values["controller"]);
Assert.AreEqual("3",
routeData.Values["id"]);
}
I have a navigation bar that uses JQuery to move between 4 stages of signup process.
However I need to make sure everything is working with JS disabled.
So I have these 4 link images at the bottom of the page and I need so that if one is clicked it posts to the current action so I can save all the form data and then redirect to the next stage.
The redirect is easy enough as I will just pass a parameter in the route or form but I don't know how to post the method using just action links.
I could put 4 different submit buttons with different classes for the image backgrounds etc but this feels wrong.
Any ideas?