development

Should I update an application when a used framework release a new version?

I have an application that use several libraries and frameworks, should I update my application to use the latest version of those frameworks when a new stable version is available? For example, migrate from python 2.x to python 3.x, or from spring 2.5 to spring 3.0, but the question es very general, not language specific. If I keep th...

Truncated string in android spinners

On the iPhone, if an option is too long for the area, instead of wrappeing you get a "..." at the end of the "drop down" and the user will know there is more text than is shown. I want to recreate this with android but am new to it so cant see how. I want the heights of "rows" in my layout to be uniform hence not able to wrap the text....

How do you set tab view to scroll?

I have managed to set up a tabbed view for my app (woo!) and have the following xml for the UI <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="wrap_content"> <LinearLayout android:orientation="vertical" android:layout_...

How to get all paths in drupal install

Hi, I need to write a module that gives me a page will all possible paths in a drupal install, including orphaned pages. (site map won't work for that). I can query the url_alias table for aliases, and I can query the menu_router table for all paths, even ones set in page/feed displays in views. But, variable paths (those with arguments...

Getting EditText field from XML

I have an activity in my app, when i call the line EditText username = (EditText)findViewById(R.id.usernameText); the app crashes, why is this? ...

Android Web View

I am curious if there is a way from within a WebView when a button is clicked it display a new view on top of the current display. I have a web site and when the user clicks the signature field I want to be able to capture the signature on the device. From the best I can tell the easiest way is to write this section in the Android SDK....

ShowBrowserBar() doesn’t show toolbar in IE8

Dear colleagues! Please help me understand what I’m doing wrong! I have a problem when I programmatically activate my IE toolbar from other program. Making it following the instruction given at Microsoft support site (http://support.microsoft.com/kb/q255920/): SHDocVw::IWebBrowser2Ptr pIE; HRESULT hr = ::CoCreateInstance(CLSI...

Android development on windows 7

Has anyone tried to develop an android app on windows 7? It says that it isn't a supported OS, but sometimes that doesn't stop people from trying to develop on it anyways. ...

Applying different Cascade Style Sheets to the same html page

To apply a CSS to an existing html page I need to add a link that links to the css file, I am asked to include a link in the webpage that I am building that would link to the same html page but with a different css file, I am thinking I need to create a different css file, then create another .html page by copy the exact content from th...

How to make your more experienced and authoritative teammates not to create 'fast temporary solutions'?

I'm currently working on a small short-lived project. But despite the size it's complicated enough with very unclear logic. That's why it was started by more experienced developers. They work on it from time to time because it's not their main project. They made some code drafts with numerous places which 'would be rewritten in the nea...

Where is the node.js file in the stack trace located?

Obviously, I'm pretty new to node.js. I'm attempting to debug a node.js application and I see node.js in the stack trace. I would like to put some sys.puts calls in there, but I cannot locate the node.js that is being run by my server. Is there a way to tell where node.js is located? Is there an equivalent to Ruby's __FILE__ in node? ...

Button Application- iPhone Application

I am a meganoob in iPhone Application programming. All I want to do is make an application with a single button. When you press the button, it plays an audio file. The button is just two images, one for the normal state and one for the pressed state. I have no clue how to get from point A to point B, it seems so straightforward in web...

Web Crawling Sites with Javascripts or web forms

Hello everyone, I have a webcrawler application. It successfully crawled most common and simple sites. Now i ran into some types of websites wherein HTML documents are dynamically generated through FORMS or javascripts. I believe they can be crawled and I just don't know how. Now, these websites do not show the actual HTML page. I mean i...

Eclipse/Aptana Subprojects

I've been using a eclipse with the aptana plugin and have all my projects neatly defined. However one project is a main corporate website lets say http://sun.com and it's set up nicely for FTP transfers. However i was wondering if there was a way to define directories of that as subprojects or projects in there own right without messin...

How to use default account parameters (login/pwd) in Android phone?

Hi I want to use default user login/pwd in my app. Do you know how can I have access to this data? best, Patrick ...

How do you tune Eclipse IDE? How do you use Eclipse IDE?

Hello, I've started to read the book "Code Craft" by Pete Goodliffe. The fourth chapter is about instruments that developer uses during his daily work; this chapter made me to review my work and I've seriously decided to make it easier with fully personalized IDE. Eclipse IDE is what I've started my learning from... I've read document...

ASP.NET MVC & Silverlight development - on Ubuntu

I recently moved my working environment from Windows 7 to Ubuntu, and enjoy this every minute of my working day. My work is currently to develop ASP.NET MVC and Silverlight applications. Thus, important Windows stuff is being still run in VirtualBox (such as IIS, MSSQL, Silverlight 3, and legacy COM stuff). For now, I use Visual Studio u...

Developing Android Applications with an HTC Tattoo Phone

Has anyone managed to develop Android Applications using Eclipse on the Windows platform. I understand the ADB needs to recognise specific models of phone and wondered if the Tattoo is supported. thanks Mark ...

How do I make a UIAlertView happen only on the first start-up of an iPhone app?

I'm using the UIAlertView to make a pop-up happen once the app has started up. It works fine but I only want the pop up to happen on the first start-up of the app. At the moment I've got the UIAlertView in the AppDelegate class, after the application didFinishLaunching. Here is my code at the moment. - (BOOL)application:(UIApplication *...

mailto: link in UIWebView - Does Not work

Is the areanything special you need in html or Callbacks in a UIWebView to handle anchor tags with an href, or is there something special about an anchor tag with a mailto link in the href? ...