16,022,333 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by UT7 (Top 60 by date)
UT7
29-Jun-24 9:39am
View
@Pete O'Hanlon, @Andre Oosthizen. Sorry for not adding more details. By adding spring security dependency to a project it should automatically secure all endpoints that a project has and generate a password which I would be able to use for logging into the application, the default username is user, so what I meant by "it didn't work" was that the password that ought to be generated wasn't generated although the spring boot application compiled without any errors after I have added all the necessary dependencies as I've stated above.
UT7
24-Mar-24 23:28pm
View
@Tyler Bakeman, thanks for your response. I uninstalled m2e connector-wro4j 1.2.0, I tried to create another Spring project from Eclipse and I still got that error, although the project got created but the error still persist. I might just have to ignore the error, thanks a lot for your time and help.
UT7
21-Mar-24 22:19pm
View
@Tyler Bakeman, thanks a lot, I'm so sorry for late response. I have to m2e plugins installed from marketplace (1) Eclipse m2e - Maven support in Eclipse IDE (2) m2e connector-wro4j 1.2.0 . Please which of these should I uninstall ? Thanks for your time and help.
UT7
18-Dec-23 19:55pm
View
Okay, I get it now, thanks a lot.
UT7
18-Dec-23 19:41pm
View
@Richard MacCutchan, thanks a lot. I already have a while loop solution but I wanted to see if a for loop can also work. Thanks a lot.
UT7
18-Dec-23 19:36pm
View
@Dave Kreskowiak, thanks a lot. I already have a while loop solution but I wanted to see if it can also work with a for loop.
String str = "hello from lagos";
String guess = "l";
int index = str.indexOf(guess);
while(index >= 0) {
System.out.println(index);
index = str.indexOf(guess, index + 1);
}
Thanks a lot.
UT7
9-Mar-23 2:25am
View
@OriginalGriff Got it! Thanks a lot.
UT7
22-Feb-23 2:28am
View
@OriginalGriff, okay, thanks a lot. I'm grateful
UT7
22-Feb-23 1:48am
View
@OriginaGriff, thanks for your response but I taught that Integer (wrapper class) wraps a primitive data type into objects and objects are located on the heap ? Please clarify. Thanks.
UT7
18-Feb-23 2:31am
View
@OriginalGriff, thanks a lot, I'm grateful. Got it.
UT7
8-Nov-22 11:27am
View
@FreedMalloc, sorry for the late response. Thanks a lot for your answer, got it.
UT7
28-Oct-22 19:45pm
View
Deleted
@FreedMalloc, thanks for your response, I really appreciate it. I created a package for this project and added a Main class where I pushed the elements of the array unto the stack. I also popped the elements of the stack from the Main class and the elements were reversed but for this approach I didn't have to use the printStack method anymore. I've added the solution below. Thanks for your time.
UT7
4-Jul-22 10:40am
View
@FreedMalloc thanks a lot, it worked ! Thank you.
UT7
4-Jul-22 10:16am
View
Deleted
@FreedMalloc thanks a lot, it worked ! Thank you.
UT7
28-Mar-22 23:32pm
View
@Wendelius thanks a lot. Yeah, I sort of figured it out. I added an index to tool_id in the tools table --> INDEX idx_tool_id (tool_id). I dropped the tools table and recreated it with the modification above and it worked. Thanks a lot for your help, I am very grateful.
UT7
28-Mar-22 21:25pm
View
@Wendelius, I changed the tool_id in the location table to BIGINT(11) but it didn't work, I still have the error. I wonder what "missing index constraint means" ? This seems to be the problem. Thanks for your help.
UT7
28-Mar-22 5:34am
View
@Wendelius thanks for your response. Sorry I changed the name of the database from flex to wax before I posted this question, so I've edited the question. Thanks a lot.
UT7
26-Mar-22 5:16am
View
@Member 15579602 - Yeah, I figured it out, thanks a lot.
UT7
15-Feb-22 10:53am
View
@Dave Kreskowiak, okay I'll give it a try, thanks a lot.
UT7
15-Feb-22 10:52am
View
Okay, noted. Thanks.
UT7
14-Feb-22 20:46pm
View
@Dave Kreskowiak, thanks a lot for your response. I'll try and see if I can figure it out. Thanks again.
UT7
14-Feb-22 18:41pm
View
@Rick York, thanks a lot.
UT7
10-Jan-22 5:48am
View
@Richard Deeming, thanks for your response. I've done what was suggested in the issues post but it didn't work. All I need is the python command to install 'spconv version 1.2.1' into Google Colab notebook and the test would run. I've also done a Google search but it didn't give me any solution, thanks.
UT7
26-Apr-21 11:29am
View
@Richard Deeming, thanks for your response. It's Tomcat that is leading me to the wrong URL. I ran my servlet from Eclipse using the Tomcat server and it directs/leads me to the wrong URL.
UT7
24-Apr-21 21:48pm
View
@CHill60, those articles are very good, it didn't solve my issue directly but it is very helpful. Thanks a lot.
UT7
7-Apr-21 4:12am
View
Wow, thanks a lot. I'll read the articles, thanks.
UT7
6-Apr-21 22:57pm
View
"USE INDEX" is there, please check. Thanks.
UT7
6-Apr-21 22:55pm
View
I want to show situations where this index would be ineffective searching the database. Thanks.
UT7
23-Oct-20 22:55pm
View
@Richard MacCutchan, sorry for my late response, thanks a lot.
UT7
17-Oct-20 22:37pm
View
Yes, it worked!!!! @Richard MacCutchan, it worked!!!!. @Richard MacCutchan, @Sanddeep Mewara, sorry I haven't been available for the past 48 hours due to some personal reasons. I'm very, very grateful for your help, time and patience. Javacc is working. Thank you.
UT7
16-Oct-20 0:12am
View
@Richard MacCutchan, @Sandeep Mewawa,
Hello Guys, this is the javacc file's content in my downloads directory.
Is this the directory that I'm to rename as javacc.jar and copy to my target folder?
My target folder is C:\Program Files\Java
If it isn't, then which file am I to rename as javacc.jar?
Directory of C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0
.9
C:\Users\Babatunde>cd downloads
C:\Users\Babatunde\Downloads>cd javacc-javacc-7.0.9
C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9>cd javacc-javacc-7.0.9
C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0.9>dir
Volume in drive C is Windows8_OS
Directory of C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0
.9
10/16/2020 04:47 AM DIR .
10/16/2020 04:47 AM DIR ..
10/16/2020 04:46 AM 662 .editorconfig
10/16/2020 04:46 AM 410 .gitattributes
10/16/2020 04:46 AM DIR .github
10/16/2020 04:46 AM 668 .gitignore
10/16/2020 04:46 AM 86 .travis.yml
10/16/2020 04:46 AM DIR bootstrap
10/16/2020 04:46 AM 25 build.cmd
10/16/2020 04:46 AM 28,653 build.xml
10/16/2020 04:46 AM 45 contributors
10/16/2020 04:47 AM DIR docs
10/16/2020 04:47 AM DIR examples
10/16/2020 04:47 AM DIR grammars
10/16/2020 04:46 AM 0 head
10/16/2020 04:47 AM DIR lib
10/16/2020 04:46 AM 1,536 LICENSE
10/16/2020 04:46 AM 2,274 makedist
10/16/2020 04:46 AM 551 make_bundle.cmd
10/16/2020 04:46 AM 533 make_bundle.sh
10/16/2020 04:46 AM 22,817 NfaStateTest.java
10/16/2020 04:46 AM 27,177 pom.xml
10/16/2020 04:46 AM 19,317 README.md
10/16/2020 04:47 AM DIR rulesets
10/16/2020 04:47 AM DIR scripts
10/16/2020 04:47 AM DIR src
10/16/2020 04:47 AM DIR test
15 File(s) 104,754 bytes
12 Dir(s) 51,929,886,720 bytes free
C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0.9>
UT7
16-Oct-20 0:06am
View
Deleted
Hello Richard, this is the javacc file's content in my downloads directory, is the the directory that I'm to rename as javacc.jar? If it isn't, then which file am I to rename as javacc.jar?
Directory of C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0
.9
C:\Users\Babatunde>cd downloads
C:\Users\Babatunde\Downloads>cd javacc-javacc-7.0.9
C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9>cd javacc-javacc-7.0.9
C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0.9>dir
Directory of C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0
.9
10/16/2020 04:47 AM .
10/16/2020 04:47 AM ..
10/16/2020 04:46 AM 662 .editorconfig
10/16/2020 04:46 AM 410 .gitattributes
10/16/2020 04:46 AM .github
10/16/2020 04:46 AM 668 .gitignore
10/16/2020 04:46 AM 86 .travis.yml
10/16/2020 04:46 AM bootstrap
10/16/2020 04:46 AM 25 build.cmd
10/16/2020 04:46 AM 28,653 build.xml
10/16/2020 04:46 AM 45 contributors
10/16/2020 04:47 AM docs
10/16/2020 04:47 AM examples
10/16/2020 04:47 AM grammars
10/16/2020 04:46 AM 0 head
10/16/2020 04:47 AM lib
10/16/2020 04:46 AM 1,536 LICENSE
10/16/2020 04:46 AM 2,274 makedist
10/16/2020 04:46 AM 551 make_bundle.cmd
10/16/2020 04:46 AM 533 make_bundle.sh
10/16/2020 04:46 AM 22,817 NfaStateTest.java
10/16/2020 04:46 AM 27,177 pom.xml
10/16/2020 04:46 AM 19,317 README.md
10/16/2020 04:47 AM rulesets
10/16/2020 04:47 AM scripts
10/16/2020 04:47 AM src
10/16/2020 04:47 AM test
15 File(s) 104,754 bytes
12 Dir(s) 51,929,886,720 bytes free
C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9\javacc-javacc-7.0.9>
UT7
15-Oct-20 4:41am
View
Is it possible for you to use Team Viewer to connect to my laptop and look through to check? I really need to get it working asap, I'm running late for an assignment submission. Thanks.
UT7
14-Oct-20 23:14pm
View
That's what I did. I moved the 7.0.9.jar the target folder and I renamed as javacc.jar but it didn't work.
UT7
14-Oct-20 7:52am
View
No, it's not working.
UT7
14-Oct-20 6:33am
View
This is the directory when I downloaded it - C:\Users\Babatunde\Downloads\javacc-javacc-7.0.9.zip
But unzipped it and moved it to my target directory - C:\Program Files\Java
And this is the path to the script directory that I added to my system variable path - C:\Program Files\Java\javacc.jar\scripts
Also notice that I have renamed the javacc-7.0.9 to javacc.jar in my target directory and it's still not working. I did all of these before asking the question on code project. Thank you.
UT7
14-Oct-20 5:47am
View
Please could explain what you mean by "....the same level as the scripts directory."?
UT7
14-Oct-20 5:41am
View
@Richard MacCutchan, the command I used is javacc.
UT7
14-Oct-20 5:40am
View
@Richard MacCutchan, the command I used in my console is javacc
UT7
14-Oct-20 4:58am
View
@Sandeep Mewara, the command that I used in my console is javacc
Yes, that's the same link that I shared.
I followed the instructions that is stated above, i added the scripts/ directory in the Javacc installation to my path. Thank you.
UT7
14-Oct-20 4:41am
View
@Sandeep Mewara, I've done all what you mentioned. I unzipped the file, copied it to the directory where my jdk and jre are, I also copied the path to the script's directory path and added it to my system variable path. That's why its not showing "javacc is not recognized as an internal or external command". Also, there isn't any bin folder in this javacc version and after doing all that I mentioned above I'm still getting the error - Could not find or load main class.
UT7
28-Aug-20 8:33am
View
Okay, noted. Thank you.
UT7
28-Aug-20 7:19am
View
Okay, thanks a lot.
UT7
28-Aug-20 5:52am
View
oh, the question on leetcode asked that we return an int array with the indices but i wanted to see the output(indices) that's why i added the print statement and called twoSum method from the main method.
UT7
28-Aug-20 5:14am
View
@Richard MacCutchan, thanks.
The call to twoSum method was to print out the indices - System.out.println("fisrtIndex is " + i + " secondIndex is " + j); but i get your point, thanks for your time.
UT7
28-Aug-20 3:57am
View
@Garth please could you clarify, if tmpNums is the address for the new array object in memory, is the address (tmpNums) assigned automatically by JVM? Thanks for your time.
UT7
28-Aug-20 0:12am
View
@Garth, thanks for your answer, very clear, thank you. But what would be the reference to the new array in memory?
UT7
3-Dec-19 11:32am
View
okay, noted with thanks.
UT7
22-Nov-19 21:10pm
View
@phil.o thanks for your comment. When i asked this question i was thinking that there might be person(s) here who might be familiar with "interfacing with stock prices" and i was hoping the person(s) might say.... looking at this code structure for this task you need to 1. Override method XYZ 2. Make the ratio work with math.random 3. Call the method ABC from the main etc. Sorry if i have offended anyone with this question, as i stated before, i don't do python, i do java. I have received answers to my questions before on this platform and am sure i would get more answers in future, thanks, no hard feelings.
UT7
21-Nov-19 5:20am
View
Kindly help me update the client.py code above to achieve the above task, thanks.
UT7
18-Oct-19 5:37am
View
Thanks.
UT7
6-Sep-19 2:02am
View
Deleted
Seen, thanks.
UT7
6-Sep-19 2:02am
View
Seen, thanks.
UT7
6-Sep-19 1:18am
View
@OriginalGriff, wow, thanks a lot. I wouldn't tell him that, lol. Thank you.
UT7
31-Aug-19 2:09am
View
Okay, will do. Thanks
UT7
30-Aug-19 22:16pm
View
Hello everyone, please don't be offended by my question(s). @OriginalGriff, @Maciej, i get it that it's the value at that index that a negative sign would be added to but for the 2nd, 3rd, 4th and 5th iterations the first part of the if statement should fail, how then would the values at those indexes be turned to negative? Please show me what i am missing.
2nd iteration in the first for loop -
int x = Math.abs(arr[9])
if(9 - 1 < 5 && arr[9 - 1] > 0)
the first condition should fail, how would that value be turned to negative?
Sorry for asking my stupid question, please help me. Many thanks.
UT7
30-Aug-19 21:41pm
View
Deleted
Thanks a lot.
UT7
30-Aug-19 6:02am
View
Thanks.
UT7
30-Aug-19 6:01am
View
Thanks.
UT7
30-Aug-19 5:56am
View
@Maciej, i understand everything in the comments. My issue is testing the the first for loop to see how each iteration works. I am having problem with the second iteration. Thanks.
Show More