Search Results

Search found 6502 results on 261 pages for 'dont reinvent the wheel'.

Page 93/261 | < Previous Page | 89 90 91 92 93 94 95 96 97 98 99 100  | Next Page >

  • Why are my resources suddenly unresolved in my Android project?

    - by Eno
    Eclipse is complaining about my Android project saying all my references to resources are unresolved, even though R.java does exist. For example: signin_btn=(Button)findViewById(R.id.signin_btn); signin_btn.setOnClickListener(this); I definately have signin_btn defined in my resources. Dont know why Eclipse is not seeing my R class anymore. How to fix?

    Read the article

  • help me to my project [closed]

    - by latha
    hi. plz tel me to how to collect data for my project. as my projct relate to "sustainable urban infrastructure" so help me that what what data should i put to my project.i dont had any idea that how to do vit data analysis .so please direct me .

    Read the article

  • Trying to retrieve the contents of UITableView cell on selection by user.

    - by chubsta
    Hi, this is my first post here and as i am very new (2 weeks in...) to iPhone (or any!) development i am a little unsure as to how much detail is needed or relevant, so please forgive me if I dont provide enough to be useful at this stage... Anyway, on to my problem - I have set up a UITableView-based app, which has a .plist for holding the data. The .plist has a dictionary as its root, followed by a number of Arrays, each containing the data-strings that display in the table. Everything is working fine until the point where i select a row. I have set it up so i get an alert with the results of the button press and it is here that i want to see the contents of the cell being produced. Instead of the expected string eg. "data line 1", all i get is the number of the row within the section. I have gone backwards and forwards but dont seem to be getting anywhere although i am sure it is something simple. The code compiles fine, with no warnings or errors, and if i can just get the string of the selected cell i will be well on my way, so any help appreciated. I know that I need to do more following the 'NSUInteger row = [indexPath row]; part but thats where my mind dries up... here is the relevant 'selection' section, if i need to post more code please let me know, and i really appreciate any help with this...(please forgive my 'alert' message, i was just happy at that point that i get SOMETHING back from the row selection!) (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated:YES]; NSUInteger row = [indexPath row]; NSString *message = [[NSString alloc] initWithFormat: @"You selected Cell %d from this Section, "@"which is a very good choice indeed!" @"Unfortunately I can't work out how to get the info out of the cell so it's not much use at the moment!" @"Still, this is a good chance to see how much space I have in an alert box!", row]; UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"My God! It works..." message:message delegate:nil cancelButtonTitle:@"You are awesome Karl!!" otherButtonTitles:nil]; [alert show]; [message release]; [alert release]; }

    Read the article

  • Scalable Ticketing / Festival Website

    - by Luke Lowrey
    I've noticed major music festivals (at least in Australia) and other events that experience a peak in traffic when tickets go on sale have huge problems keeping their websites running well. I've seen a few different techniques used to try combat this such as short sessions and virtual queues but they dont seem to have much effect. If you were to design a website to sell a lot of tickets in a short amount of time how would you handle scalability? What technologies and programming techniques would you use?

    Read the article

  • How to create custom javadoc tags

    - by Carlucho
    How to create custom javadoc tags such as @pre / @post... I found some links that explain it but i haven had luck with them, i dont know if that am already tired but i can figure where to put it. these are some of the links http://www.developer.com/java/other/article.php/3085991/Javadoc-Programming.html http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html I'm sorry to ask to be spoon fed but am at the stage where i only see black dots on the screen :\ Thanks a bunch

    Read the article

  • adding jpanel into a jframe. netbeans

    - by stdnoit
    i am particularly using netbeans gui editor and i am new to gui i have a jframe created and I added jtabbedpanel. inside the jtabbedpanel i have 2 panels that i call standard and compact i have set standardPanel = new ImagePanel(); which ImagePanel.java is located on different java file how am I suppose to put a panel on different file for reusability ? i obviously dont want all the codes in a single file. is this the right way to design a gui ? thanks

    Read the article

  • Diehard test only integers?

    - by emmy
    i want to test some "random" numbers in (0 1). i will test them with the diehard tests battery, but i dont know if it tests numbers in (0 1). so diehard test any kind of numbers, or it just test intergers?

    Read the article

  • internal ToMVCHmlString in TagBuilder

    - by Joe
    I am looking to write a few helpers in my own assembly modeled after the helpers in System.web.mvc. My problem is that I cannot use the call to Tagbuilder.ToMvcHtlString since it is internal. So if I return a string it wont be ready for asp.net 4 when it comes. I dont want to add anything to system.web.mvc as that is a given dll.

    Read the article

  • XPath find element based on ancestor element

    - by martymcfly
    Hi, again I have Java AST which is created from public class Test { String o = new String("hh"); public void wrong1() { synchronized(o) { // huhu } } } I try to create a XPath query which finds the synchronized block in which the defined String variable o is used. As the definition is above it is an ancestor of the SynchronizedStatement, but I dont get it working //SynchronizedStatement[Expression/PrimaryExpression/PrimaryPrefix/Name[@Image=ancestor::ClassOrInterfaceBody[ClassOrInterfaceBodyDeclaration/FieldVariableDeclaratorId/@Image]]] I know that /SynchronizedStatement[Expression/PrimaryExpression/PrimaryPrefix/Name[@Image= is correct, my problem is how to address the ancestor ClassOrInterfaceBody part. Hope its clear what i mean ;-) Thanks

    Read the article

  • can we use something IN and something NOT in mysql

    - by JPro
    I want to know if I can use something like this : If yes, then what will be order ? I dont seem to understand quite well the explain plan of mysql Select * from results where TestCase NOT IN (select TestCase from results where Verdict <> 'PASS' and StartTime > DATE_SUB(NOW(), INTERVAL 2 MONTHS)) and TestCase IN (Select TestCase from testcases where Type = 'NONOS') EDIT : Also how can I order by StartTime to display the latest first?

    Read the article

  • Rails layout: 2 cols cache and content_for..

    - by Totty
    Hy, I have a layout that has 2 cols and in every view i have: content_for :main_col and content_for :side_col in some parts of the site, the side_col is always the same and how do i do that being DRY? partial render? i dont think is so good. then it comes to cache.. the content_for is not good to cache... you have better ideias on how to implement this?thanks

    Read the article

  • Simulating Key Press c#

    - by Dani
    Hi, I want to simulate F5 key press in my c# program, When IE open I want to be able refresh my website automatically,and I dont know where to start. thanks, Dani.

    Read the article

  • Changing python interpreter for emacs

    - by sam
    Emacs uses an older version of python(2.3) i have for the default python mode, is there a way for me to tell emacs to use the newer version that i have in my home directory? btw I'm using a red hat distro and dont have root privileges.

    Read the article

  • How I can hide url

    - by kamiar3001
    void Application_BeginRequest(Object sender, EventArgs e) { HttpApplication app = sender as HttpApplication; if (app != null) if (app.Request.AppRelativeCurrentExecutionFilePath == "~/About.aspx") app.Context.RewritePath( app.Request.Url.PathAndQuery.Replace("/About.aspx", "") ); } I want to hide url like the following : requested url : "http://domain.com/WebFolder/page.aspx" url should be show : "http://domain.com/WebFolder" How I can do that I try the above code but it is not work causing to redirect new rewrite page I dont want it, I just want to hide my url for section of page name.

    Read the article

  • C#...... associating keys to buttons...

    - by user300484
    Hello everyone! I have to write a method on C# that associates a certain key ( from the keyboard) to a specific button.For example.... if I press "a"....... the button that I created on a form application should appear like if it is being pressed. I dont really know how to do that and I would appreciate your help! :)

    Read the article

  • JAVASCRIPT regexp

    - by Parhs
    Hello! I have some hidden inputs like this I would like somehow to replace the [1] with a number that i want (index) I aint lazy but i am trying to find a good way to do this... a solution would be a replace of exam.normals[1] with exam.normals[+ index +] but i should substr the whole string first.... With regexp i dont know how to do the replace. good...

    Read the article

  • How to provide KeyPress event to WebBrowser control?

    - by Pritorian
    Hi all, i really need to catch "ESC" key press while focus is on WebBrowser control. I tried something like this: (webControl as Control).KeyPress += new KeyPressEventHandler(MyKeyPressEventHandler); But it doesnt work. The method is not called. I tried some methods, described here, but dont get any result ( Help, please.

    Read the article

  • Close WPF PopUp when clicking on Window Title bar.

    - by Jobi Joy
    I can see that the PopUp dropdown of a combobox gets closed if we click anywhere else in the app. How do I give that feature to my own Popup. I dont want to give a PreviewMouseDown event handler for the RootWindow to solve this issue. Something at the level of my userControl containing this popup.

    Read the article

< Previous Page | 89 90 91 92 93 94 95 96 97 98 99 100  | Next Page >