- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 80
- Posts with Upvotes
- 69
- Upvoting Members
- 31
- Downvotes Received
- 6
- Posts with Downvotes
- 6
- Downvoting Members
- 5
Working as Web Developer
- Interests
- Photography, websites, computers
- PC Specs
- dell xps 17, 8gb RAM
Hi I'm trying to create a script in powershell that finds a string in a file and then modifies it but I'm having issues matching the string I want. So, I'm trying to make sure that I can find this type of string |d where d is is any digit, … | |
Hi there, I am trying to do an exercise from a C++ book. It goes: Develop a program that will move the knight around an empty chessboard. The chessboard is represented by an 8-by-8 two-dimensional array [ICODE]board[][][/ICODE]. Each of the squares is initialized to 0. We describe each of the … | |
I 'm building an application to store and retrieve books, but I have an issue with retrieving data from the db. I'm using REST and testing with postman. Everything works OK. Currently I have a series of methods written in Java at the backend like so @Override @POST @Path("/add") //@Produces("application/json") … | |
Hi there, I've come across an issue while trying to get all the records from a SQL database in java. A bit of necessary introduction here. I'm not using any framework just JDBC and the getAllBooks method is part of a REST call. The failing method is essentially doing this: … | |
Hi all, I have a question about updating two values in a sql table using a subquery. My database is called books and the below table books too: id title author location_id 11 Tera Netrear 4 14 Disser Bubu 1 15 Tenno Puoio 4 16 Oban Tyrone 5 18 Sisnobi … | |
Hi there, I am totally new to Java script (just began to looking into it) and I would like to do something with the comment box on one of the website I am working on [url]http://antobbo.webspace.virginmedia.com/webediting/documents.htm[/url] Basically rather than that box at the bottom of the page I was thinking … | |
Hi guys, I was trying to test a method which takes a user input, does something and then returns that input but I'm having some issues with it. I've attempted a few solutions, mostly described in SE, I will leaave them out of this post and discuss instead the one … | |
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 all, I'm having some issues with the Scanner not waiting for input from the keyboard. The first method processChoice takes the userChoice and the idea is that in the switch statement there is a call to a method getUserInputForProcessing that takes the action and there scanner takes an input … | |
Hi all, I have an application which saves data (books details like book title, author and location) to a mySql db and performs CRUD operations. I thought I'd use hibernate to take care of the ORM side of things and everything was OK when it came to create a record, … | |
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 wonder if this is something I could do on this forum. I've never worked with REST, so I thought that it could be a good exercise to try to develop a very small and simple Java application and try to make use of REST as well. I … | |
Hi guys, as part of an exercise I was involved with, I had to use the factory pattern to create a series of different objects, however I'd like to keep a list or map for what it matters of these objects and I'm getting a bit into troubles here. So … | |
Hi all, I haven't used the forum for a while so lot of the functionalities are new to me and I have to admit I found some of them really counter intuitive/annoying. For a start, the way to reply to threads, that "Reply to this topic" button at the bottom … | |
Hi guys, I was trying to sort an arrayList using a comparator but I didn't have much luck, or at least it seems like there is something slightly wrong with it. I have these objects in the arrayList employeeCollection.add(new Employee("Dan", 112)); employeeCollection.add(new Employee("Tim", 2)); employeeCollection.add(new Employee("Rick", 11)); employeeCollection.add(new Employee("Jack", 19)); … | |
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 chaps, I have a Dell XPS17, dual booting with Windows and Ubuntu on it. I have to give it away and therefore reinstall windows. Usually, I'd format the whole HD and reinstall Windows, but I don't have the Windows CD – it wasn't dispatched with the laptop unfortunately – … | |
Hi guys, I've got an issue with my angular application, I've got a form which is meant to create a new record (object) and push this object into an array. My set up is the following: I have a book.component.ts whic contains an array of IBooks as such: books: IBook[] … | |
HI guys, as I was playing with observers today I came across something interesting. I have a program which keeps a list of users (Observers) and products (Observables) and the idea is that whenever the availability (that's a property of a product) changes the Observers are notified of this change. … | |
hi guys, I've come across observers while working ona very very large project, and I didn't quite understand how they were structured and I suppose this had something to do with the huge size of the project itself. Anyway, I then decided to delve a little more into that, I … | |
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 … | |
I was just wondering if anybody here on daniweb has any experience of writing twitterbots, for things like, for instance, looking through tweets for keywords and then submitting a link to your own profile when you find an advert that interests you or something like that. I, perhaps naively, never … | |
Hi guys, I'm fairly new to angularjs 2 (I've only used 2) and I have a small application with a form. Currently I'm able to get the form data as an objects and print it to the console.log, onSubmit(form: any):void{ console.log(form); } producing this: Object {author: "Author test", title: "Title … | |
Hi guys, I wonder if you can help me. As I’m now doing java development as a profession now, I’ve realized that I’m a little weak when it comes to fix, modify and understand code within large applications, and, needless to say, I need to find a way to get … | |
Hi guys, as I'm looking into the MVC pattern, I thought I'd create a small application to understand a bit more. Let's look at the code: //model package model; public class StudentModel { private String name; private String surname; private int number; public String getName() { return name; } public … | |
Hi guys, I have a rather interesting problem. Basically my application has a javascript object literal in this format: var myObject = '{text:"my text 1", anotherProperty1:"This is another property1", anotherProperty2:"This is another property2", anotherProperty3:"This is another property3"},' + '{text:"my text 2", anotherProperty1:"This is another property1", anotherProperty2:"This is another property2", anotherProperty3:"This … | |
Hi guys, I'm looking into the possibility of writing some javascript (or using an API of course) to be able to search a collection of PDFs and return the results in a Json format for processing (mainly displaying them back to the user). I've played around a little bit with … | |
Hi guys, as I have never used any design pattern I thought I might try to learn something by developing a small application. What I'm thinking is something like a radio controlled car simulation - I mean a really really simplified version of it of course - something like creating … | |
HI guys, I seem to be having an issue declaring a json string. The original string I have is this: var jsonString = '{ "details" : [' + '{"text":"Lorem ipsum dolor sit amet, consectetur 0", "firstName":"Jack0", "surname":"Dee0", "moreInfo":"This is extra information"},' + '{"text":"Lorem ipsum dolor sit amet, consectetur 1", "firstName":"Jack1", … |