163 Solved Topics
Remove Filter So my new Asus UX305 has just arrived. I charged the battery till full and I'm now using the laptop. I'm planning to switch it off very soon, and then it occurred to me, do I have to break in the battery, or can I just use it as normal … | |
Hi guys, I'm a little stuck with something here. Basically I have a a method which, given a List of Students will have to filter out those who are younger than 60yrs old and should return a List of Students who are over 60yrs old but I want this to … | |
Hi guys, I am having an issue finding duplicates in an arrayList. Here is some code studentRecords.add(new Student("Jo", "Pip", "JP000", LocalDate.of(1999,9,23), Sex.FEMALE)); studentRecords.add(new Student("Tara", "Bot", "TB345", LocalDate.of(1991,9,1), Sex.FEMALE)); studentRecords.add(new Student("Mara", "Lewart", "ML456", LocalDate.of(1988,5,23), Sex.FEMALE)); studentRecords.add(new Student("Anna", "Clarke", "AC010", LocalDate.of(1999,1,1), Sex.FEMALE)); studentRecords.add(new Student("Frank", "Boia", "FB300", LocalDate.of(2001,8,13), Sex.MALE)); studentRecords.add(new Student("Anna", "Clarke", "AC010", … | |
Hi guys, I seem to have an issue with a boolean method returining a value. Here is the code excerpt - irrelevant code omitted: public class StreamsTest { public static void main(String[] args) { String[] arr = new String[]{"a", "b", "c"}; //convert array to string with streams List<String> list = … | |
Hi guys, I'm playing around ith optionals a little, but I'm not surewhether this is the correct behavious as I'm getting a null pointer exeption (I thought the point of Optionals was not to get a null pointer.) SO I'm setting an object to null and before calling toString on … | |
Hi, I'm thinking to upgrade from java sdk 7 to 8 (JamesCherrill will be pleased,lol!) and I was just wondering if there is anything I need to be careful with, especially in eclipse. I will start first with Windows, and then do the same thing in Ubuntu. My eclipse seems … | |
Chaps, I wonder if you can give me a hand with this. Here's the brief: "Create a program that draws 10 random filled shapes in random colors, position and sizes. Method paintcomponent should contain a loop that iterates 10 times. In each iteration, the loop should determine whether to draw … | |
HI guys, I run into a problem. I have a input of type file and I'd like to grab the file name of the uploaded file and assign it to a variable, but I don't seem to be able to do that. I'm hiding hte input with opacity 0 and … | |
Hi guys, I wonder if you can help me at all. As some of you will know I do a bit of java development here and there but unfortunately I don't really have any programming background, like, I haven't studied computer science - I just learned (well, that's an overstatement) … | |
Hi all, I need to add a contact form to a site I'm working on. I'm just thinking whether it would be better to go with an online solution (grab a form from somewhere and use it on my site) or building my own thing (complete with captcha etc). I'm … | |
Hi guys, Today I had a look at files and therefore I’d like to create a GUI application that allows me to type a sentence or a word and store it to a text file. The reason for this is that, when I come across an interesting word or sentence … | |
Hi guys, I'm having some problem with cloning a div with a button in and its functionality. 2 words about the functionality first. Basically I'm creating some HTML with javascript (it has to be done that way I'm afraid) and append it at the top of the page. I also … | |
Hi guys, I have a dell xps 17 and the connector is broken. I've found what I need on ebay http://www.ebay.co.uk/itm/DELL-XPS-17-L701X-L702X-POWER-SOCKET-JACK-CABLE-RMD72-R7DCGM7PB000-PJC237-/271230139718?clk_rvr_id=932028979691&rmvSB=true but I was wondering if anybody knows whether an official dell retailer exists. I had a look at their site but I couldn't find the part, I also live … | |
HI guys, as mentioned in my revious post, I'll redo my wordCount application using the GridBagLayout approach. The functionality of the application hasn't changed at all: I've only removed the various Jpanels and, for simplicity, used only the JFrame and attached all the comonents to the JFrame. I've had a … | |
HI guys, I'm trying to build a small GUI application where users can input text (in a JTextArea) and by pressing a button, you get a summary of how many times each word in the text has occurred. So here come the questions. First, the GUI itself. The way I … | |
HI guys, I'm a bit puzzled about the forum area tags that appear on our profiles, screenshot here  This is supposed to show you the areas of the forum where you've been posting more, but it's either inaccurate or there is something wrong with the taggin system (the … | |
Hi guys, I'm now looking at what seems to be a nice exercise on my java book. Basically, the exercise asks me to build a virtual keyboard GUI - see screenshot - and when you press each key on your real keyboard the key you've pressed will change its background … | |
HI guys, I've just run into an issue. Basically I'm working t a wordpress site, and there are some conflicts with the usage of the "$" sign so I used this in the document ready to allow me to use "$" in place of jQuery: jQuery(document).ready(function($){ ... }); It works … | |
HI guys, as I'm gettng into Java GUI again after a long time, I'm trying hard to remember things, but not everything is that clear anymore. I'm in the process of building a very simple GUI application with a few buttons. First question is about the JFrame and JPanel. From … | |
Hello guys, long time no see! i've put together a very small simple console base application that takes a date and a few strings and print them off. Let's look at the code first. Date.java /*Date.java this class represents dates */ public class Date{ private int month; private int day; … | |
Hello all, I decided to open a new thread which I could use to ask questions about how to customize this new MVC application I created https://www.daniweb.com/web-development/aspnet/threads/497464/much-simpler-first-mvc-application, add HTML and change the default look and feel. If the mods are OK with that, I was thinking to use this thread … | |
Hi, since I've spectacularly failed to build a simple MVC application (for now at least ) https://www.daniweb.com/web-development/aspnet/threads/496278/building-first-mvc-application, I've decided to do even a simpler one, modelled on this one http://www.codeproject.com/Articles/683942/An-Absolute-Beginners-Tutorial-for-understanding-E , which is supposed to create a few books and their associated reviews I don't think it gets simpler than … | |
Hi all, I've just noticed that on one of my threads when I click on an attached image to enlarge it I get a 404 not found error. This is the thread in question: https://www.daniweb.com/web-development/aspnet/threads/496304/understanding-entity-framework-databases-and-models Can you replicate the error? Does anybody know why? thanks | |
HI all, I have a question about how Entity Framework deals with databases and models, especially when it comes down to change your model after the database has been created. Let's look at a very simple example. I have an EmployerDetails class as below: using System; using System.Collections.Generic; using System.Linq; … | |
Hi all, I've run into a strange issue. Basically, I created my new application called input-outputTest, created my model class using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace input_outputTest.Models { public class EmployerDetails { private string Name { get; set; } private string Surname{ get; set; } private int … | |
Hi guys, I'm trying to get my head around this strongly typed view concept but I keep getting an error hen I view the page. Basically, my application is called modelsTest and I have a CompanyInfo.cs class: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace modelsTests.Models { public class … | |
Hi all, I'm just redoing a very simple MVC app found on a book and I have created my model using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MvcGuestbookRevised.Models { public class GuestbookEntry { public int Id { get; set; } public string Name { get; set; } public … | |
Hi guys, does anybody know how to download a MVC project from GitHub and get it to work in Visual Studio? I'm following a MVC tutorial and these are the various modules of the projects https://github.com/jongalloway/MVA-Introduction-to-ASPNET-MVC and I'd like to get them out of there, on my computer and use … | |
Hi guys, I'm looking into MVC and I'm reasing this tutorial http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-fundamentals I've got to the point of adding a model and the class they add is this: public class StoreIndexViewModel { public int NumberOfGenres { get; set; } public List<string> Genres { get; set; } } I'm not really … | |
I just wanted to share this with the community, in case anybody finds it useful. I'm learning ASP.NET and started with Web Forms and now I'm moving slowly to MVC. As I have just started with MVC - which is significantly different from Web Form - I've been looking for … | |
I just came across something strange, and I posted it here because although it is C# it is still part of learning ASP.NET. Usually when you use setters and getters, you have proper methods to set and access private variables (I'm referring to C++ and JAVA mainly) but here in … | |
I must admit I feel a little embarrassed to post this, but I don't seem to get this simple flipping application to work and I'm getting this error: Login failed for user ''. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack … | |
HI guys, I need to format andn reinstall windows 7 on my dell xps 17. Two things though: I don't have any windows installation disk - I suppose there will be a windows 7 iso stored by the manufacter somewhere - and it's dual boot as I have linux installed … | |
Hello, I'm building an expenses application in asp.net and I'm attempting to insert some data in a SQL database in visul studio but I get the following error (screenshot here http://s13.postimg.org/4kjmn4nev/SQL_error.jpg): The INSERT statement conflicted with the FOREIGN KEY constraint "FK_expenses_ToexpenseCode". The conflict occurred in database "Applications", table "dbo.expenseCode", column … | |
Hi guys, I hope this is the right section to post. I need to develop an application in visual studio 2012 that uses SQL (please bear with me as I'm not very well versed in databases and SQL and therefore I don't know what SQL visual studio uses), and when … | |
HI guys, I'm having a problem with hiding and showing a panel that contains a text box. Basically the panel is hidden and whenever a radio box is selected the panel should show but it won't work. Here is the code: <div class="expensesForm"> <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> … | |
Hi all, I just came across something odd. I'm just building a simple form, like this in visual studio <div class="control-group"> <label class="control-label" for="rent">Rent</label> <div class="controls"> <asp:RadioButton ID="rent" runat="server" GroupName="expenses" /> </div> </div> and when I viewed it, I expected to be able to click on the label and get … | |
Hi guys, does anybody have any experience with Azure at all? I finally deployed a test site I built http://web-dev.azurewebsites.net/About.aspx and unfortunately there seems to be a problem when you submit the form (obviously I tested the form many times before deploying the site and it was definitely working in … | |
Hi all, just to practice a bit more with asp.net and c#, I was thinking to build a small application to keep an eye at my monthly and yearly expenses (rent, car, bills, food shopping). I have a few ideas but I thought I'd check with you guys what's the … | |
Hello guys, I wonder if you could kindly explain this to me. Basically, I've got a form and a thank you message above it, here they are: <asp:Content ID="Content5" ContentPlaceHolderID="contentPlaceholder" Runat="Server"> <div class="thankYouMsg" id="thankYouMsg" runat="server"> <h2>Thank you for your feedback.</h2> </div> <div class="contactForm" id="contactForm" runat="server"> <h2>Contact me</h2> <div class="form" runat="server"> … | |
Hello guys, I'd like to clarify a few things with IDs and classes. As I've learned so far, ASP.NET adds its own id and overwrite the previous one, if there was any. Let's just take a recent example, the panel I added in my previous thread: <asp:Panel ID="ThankYouPanel" runat="server"> <div … | |
Hi all, I have visual studio 2008 and as I recently started to use it, I still develop the HTML from scratch and then move it to ASP.NET. Anyway, when I did my last site and uploaded the CSS in visual, I got quite a lot of CSS 3 error … | |
Hello guys, I wonder if you can help. I've got an existing site that I want to "convert" to an ASP.NET one and I gave a good read at the master template tutorial suggested in another thread, but I'm having a few problems deciding what goes in the master page … | |
Hi all, I was just wondering, how do I go about making an asp.net application accessible on the internet? The application is also linked to a SQL database (created in visual studio). I have got server space available but I'm not sure where the sql database needs to be copied … | |
Hi guys, as I'm fairly new to visual studio and asp.net, I might be missing something really obvious here...basically I have created a CSS file which is referenced in the aspx file (I dragged the css file from the project to my aspx file). Then I created another aspx file … | |
Hello all, I'm trying to change the innerHtml of a div in the code behind and noticed an interesting thing. If I have this situation: aspx file: <div id="displayPanel" runat="server"> </div> C# while(reader.Read()){ ... displayPanel.InnerHtml += "<span>"+ name + " has donated £ " + donation + "</span>"; } everything … | |
Hello guys, I wonder if anybody could clarify this for me. I've created a new website (File > New > Web site) and as we all know I now have a aspx file (Default.aspx) and a aspx.cs file (Default.aspx.cs). The aspx file contains a form and when submitted, it sends … | |
Hi guys, quick question. When I work with asp.net controllers (so say a TextBox or a Label) if I want to get what's inside them I will use the Text property: for asp.net listboxes instead I use the Value property. If I instead, say, I ditch completely the asp.net controllers … | |
HI chaps, I was wondering if it is possible to add a meta tag using jquery to an html page before the page loads. The reason why I ask, is because I have a page with no viewport meta tag on and it should have it only when the resolution … | |
Hi all, I started to look into event handlers, and there is something I would like to ask, sorry if this is a silly one. I can see that different Java components generate different events when the user interacts with them, but when it comes down to 1)which interface the … |
The End.