Posts
 
Reputation
Joined
Last Seen
Ranked #320
Strength to Increase Rep
+9
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
~272.81K People Reached
About Me

Working as Web Developer

Interests
Photography, websites, computers
PC Specs
dell xps 17, 8gb RAM
Favorite Tags

428 Posted Topics

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
916
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
406
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
550
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
356
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
931
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
652
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
358
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
389
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
203
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
356
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
417
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
569
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
318
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
604
Member Avatar for Violet_82

Hi guys I wonder if you can help me with this as it's driving me absolutely crazy. So, I have a div, in the first screenshot which looks pretty much like a scale and can be rotated right up to 45 degrees and left up to -45 degrees ![arm_0.jpg](/attachments/large/2/7fbaf6a4b6f6140020d69bcf00526f0c.jpg "align-center") …

Member Avatar for Geoff_3
3
311
Member Avatar for Violet_82

hi guys, I came across something rather interesting today. Basically at the moment I'm trying to add multiple spans with a background image to a horizontal div so that the final product looks something like a large ruler ( I use an image with a little black tick to simulate …

Member Avatar for Violet_82
0
277
Member Avatar for Violet_82

HI guys, I wonder if you can help me at all. I'm going to be involved in a "data visualization" project, meaning that I have to find a good way to visualize some data. What do you mean I hear you say? Well, we have some data and we have …

Member Avatar for pty
0
453
Member Avatar for Violet_82

Hi guys, I will soon have a licence to run webstorm on one machine (at work) but I need to think of some other free IDE which supports typescript ideally natively on a different laptop running windows and linux (at home). I had a look around of course, but as …

Member Avatar for diafol
0
418
Member Avatar for Richard_35

I agree and disagree with diafol. Don't try convert your website to support mobile/tablets etc, I'd be very surprised if you can actually do that, but regardles, as diafol said, it will be incredibly painful and you will reach the point where you think you're wasting your time. You will. …

Member Avatar for gentlemedia
0
367
Member Avatar for Violet_82

Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them. I don’t want at this stage work on a big separate project as I've already got plenty …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Violet_82

Hi guys, I just don't seem to get this right at the moment...say I want to create an array of objects, I'd do it this way of course: arrayOfWords[ { "SearchTerm":"mySearchTerm1", "Syn":"synonym1", "Syn":"synonym2", "Syn":"synonym3" }, { "SearchTerm":"mySearchTerm2", "Syn":"synonym1", "Syn":"synonym2", "Syn":"synonym3" } ] That's all OK but I'm now in a …

Member Avatar for Violet_82
0
323
Member Avatar for Violet_82

Hi guys, I'm a git first time user, and I followed this guide to set it up and get it up and running https://git-scm.com/documentation. So I'm now using git from the console (at the moment I'm logged in windows, so let it be the windows console). My question is - …

Member Avatar for Violet_82
0
553
Member Avatar for Violet_82

HI guys, as my next application I thought I'd build a simple converter, something that allows me to convert from, say, Km to miles and so on. The framework I will use is vaadin (unfortunately) but it will still be java anyway :-). So, I just thought I'd see if …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Violet_82

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 …

Member Avatar for JamesCherrill
0
300
Member Avatar for Violet_82

Hi guys, I have an application which allows users to upload a file. I managed to limit the types of files they can upload (the accept property helped) but I also want to do something else: when you upload a file and you click the browse button, as we know, …

Member Avatar for Violet_82
0
406
Member Avatar for Violet_82

Hi guys, I have a question about error handling. Still working on the addition application and now that I've learned what are the correct exceptions to handle I'm not sure what to do when I've established that the my inputs are all valid and print my result. Let's have a …

Member Avatar for Gribouillis
0
418
Member Avatar for Violet_82

HI, I was trying to log in onto my account from another machine and I got to a page asking me to fill my Match Profile, with no way to cancel it. That doesn't seem right, what if I don't want to do that? Not sure why you guys are …

Member Avatar for Violet_82
1
439
Member Avatar for Violet_82

HI guys, I'm really new to SVN and today I've installed tortoise as I'm working in windows at the moment and I'm following this tutorial https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-qs-guide.html. So, I have a java project in Eclipse: I have created a local repository folder on my machine and imported a project in it. …

Member Avatar for Violet_82
0
290
Member Avatar for Violet_82

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 …

Member Avatar for Verse_1
3
5K
Member Avatar for Violet_82

Hi guys, I have a simple application which allows users to input a divisor, a divident and then calculates the quotient. I'm using vaadin as framework but I don't think that matters. So I've been thinking about the exceptions that can occurr and these are the ones i have identified: …

Member Avatar for JamesCherrill
0
405
Member Avatar for Violet_82

Here is something interesting about `detach()` vs `remove()` in jquery that happened to me. As we know, `remove()` removed an element from the DOM wherease the` detach()` does the same thing but it keeps all the jquery events bound to the element to which the method is applied to. I …

Member Avatar for rproffitt
1
263
Member Avatar for Violet_82

Hi guys, I wonder if you can help. As I've started as a programmer, I've been told I have to practice OO a bit more. I've done the theory, but I think I will have to take another look at it. , Above all though, I have to do exercises. …

Member Avatar for AssertNull
1
613
Member Avatar for Violet_82

I'd like to start from the basics if I may please. I've read a few tutorial here and there and I've just created a test application with probably the simplest RPC calls you can possibly have (basically I want to use the RPC call to call a method to print …

0
178
Member Avatar for Violet_82

Hi guys, I have a form which contains a file upload input field. When I select a file, mainly text files, the actual content of the file is displayed in a textarea field. Now, what I need to do, is to send that information - the data contained in the …

Member Avatar for Violet_82
0
272

The End.