Posts
 
Reputation
Joined
Last Seen
Ranked #319
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
91% Quality Score
Upvotes Received
80
Posts with Upvotes
69
Upvoting Members
31
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
5
11 Commented Posts
15 Endorsements
Ranked #99
Ranked #1K
~269.71K People Reached
About Me

Working as Web Developer

Interests
Photography, websites, computers
PC Specs
dell xps 17, 8gb RAM
Favorite Tags
Member Avatar for Violet_82

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, …

Member Avatar for xrjf
0
905
Member Avatar for Violet_82

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 …

Member Avatar for yaer
0
3K
Member Avatar for Violet_82

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") …

Member Avatar for Smartfitness33
0
403
Member Avatar for Violet_82

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: …

Member Avatar for Violet_82
1
542
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
352
Member Avatar for Violet_82

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 …

Member Avatar for Mohamed Thaha
0
6K
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
3K
Member Avatar for Violet_82

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 …

Member Avatar for mariah1902
0
1K
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

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, …

0
928
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

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", …

Member Avatar for Violet_82
1
2K
Member Avatar for Violet_82

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 …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Violet_82

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Violet_82

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 …

Member Avatar for Dani
0
2K
Member Avatar for Violet_82

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)); …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Violet_82

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 = …

Member Avatar for masijade
0
3K
Member Avatar for Violet_82

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 – …

Member Avatar for Reverend Jim
1
2K
Member Avatar for Violet_82

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[] …

Member Avatar for JamesCherrill
0
643
Member Avatar for Violet_82

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. …

Member Avatar for Violet_82
0
1K
Member Avatar for Violet_82

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 …

Member Avatar for JamesCherrill
0
355
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
383
Member Avatar for Violet_82

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 …

Member Avatar for Adam_40
0
202
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
351
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
413
Member Avatar for Violet_82

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 …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Violet_82

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 …

Member Avatar for diafol
0
548
Member Avatar for Violet_82

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 …

Member Avatar for Mohamed_84
0
2K
Member Avatar for Violet_82

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 …

Member Avatar for Violet_82
0
314
Member Avatar for Violet_82

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", …

Member Avatar for Violet_82
0
597