Waylon Wolf

Greenhorn
+ Follow
since Oct 23, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
7
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Waylon Wolf

I can transfer a very small files such as 1kb files but not larger than 100 kb.
I also set a timer to 600000ms which is an hour.

Everything seems to work for the first time but when I tried to test run for second time ,
it does not seem to work.

Ron McLeod wrote:This looks suspicious: String remoteDir = "//remoteDir//";

What is the actual directory that the FTP server will translate this to?: /home/usr/remoteDir?

I have been having issue with uploading files via SFTP using the following imports



When I upload the files via WinSCP, I don't have any issues. That means, the issue is
within my program. Following is the test code that I wrote. The program freezes at



and never finishes. I don't receive any error message or exception. Please help me!

Thank you. You saved my live.

Aalok Pandit wrote:All

The settings suggested in the link do not help(at least did not help in my case).

How I solved it(Hope it helps someone else):
I looked into the source code of FTPClient and browsed to the code which was throwing the error. There I realised that a verification which generally passes, was failing on the proxy server.

When we instantiate a FTPClient object, a boolean variable remoteVerificationEnabled is set to true by default. This variable is used while doing a connection verification, which fails in case of proxy servers.

So after the instantiation of FTPClient, we need to set the variable to false by calling the setter method.
eg:


Please correct me if I am wrong.

I am planning to take next step and take 1z0-869 Java mobile edition 1. I cannot find any textbook and exam information about this test.
Does anyone familiar with 1z0-869? I need recommendations. Thank you in advance.
6 years ago
I took OCP Java SE 7 test today and I recieved 73%. I received 69% in Enthuware exam.

The resources I used are

1) Enthuware Exams
2) (Oracle Approved) Transcender Practice Exams
3) OCA/OCP Java SE 7 Programmer I & II Study Guide by Sierra and Bates.
4) Oracle Certified Professional Java SE 7 Programmer Exams by Ganesh and Sharma

All of those materials are equally useful in many ways. Enthuware exams are challenging and great. Kathy Sierra is a awesome writer!
6 years ago


I understand that Animal is-a Walkable. However, is the statement "Animal has-a Organ"?
I like to say that animal has-a list but the list holds the objects Organs.
Please provide the source.
6 years ago
I was thinking the similar techniques. I took a chance to see if there are any other way around.
It looks like there is not! Thank you for being supportive.
I am writing an application that searches an encrypted fields by using aes-256-ecb
I have a table 'encTest' with an encrypted column. I would write a query that search by column name1.
Since 'name2' column will not be there in reality, the following SQL query will not work.

SELECT * from encTest where name2 = 'Sarah';

I would like to know if it is safe to use.

SELECT * from encTest where name1 = AES_ENCRYPT('Sarah', 'keyForDescyption');


--------------------------------------
id         name1           name2
--------------------------------------
1 *&$_@)(&^$s)@&    Jennifer
2   !@%#@%sw$#@fdc    John
3   <>:#}{(#%@!*%a     Sarah
4    ~_!@*^$t$7%&Dj      Sara
--------------------------------------

Is there any better method to solve this problem? Thank you for reading this.
I figured that out. The waiting thread has to start before the notifing thread. That is.



6 years ago
I am studying OCP Java SE7 Programmer II exam. OCA/OCP Java SE7 Programmer I&II Study Guide  by Kathy Sierra and Bert Bates. I am in Chapter 13 Threads now. I came across with the codes from the book, which doesn't seem to be working. I could not figure out why. The following are the codes.



And the output is>>>



As you see the code doesn't reach to "The wait is over". Apparently notifyAll() does not really notify the thread in the Reader class. What am I missing? Thank you for your time in advance.
6 years ago
The book doesn't give the solution. The book is only explaining how to use Exchanger and I thought the first thread to start would execute the run() method first.
6 years ago
I am studying concurrency. I tried to run the code below and the results are undetermined for which Thread comes first.
The book explained about the indeterministic behavior of threads but for this specific codes, it did not say why the threads are not in
order. Can anyone explain why?

Source -

6 years ago

Dave Tolls wrote:I'm curious why they didn't show this using a single DataSet class:

That's how a TreeSet works (sort of).

Or do they expand on this later?






Dave,
I meant to write that. "Sorting sorting" should be commented out on the second set of codes. Since I intentionally take the interface off to see if it works.
7 years ago
I am reading JAVA SE 7 Programmer Exams by SG Ganesh and Tushar Sharma. I have questions on simple Interface example. The authors mentioned that a good design for DataSet program goes as followed




my question is what could possibly go wrong if I drop the interface and write the code like this? The DynamicDataSet and SnapshotDataSet will function as the same right?
What would be the future disaster?

7 years ago
I took Java SE 7 Programmer I (1Z0-803) and passed with 76% on the passing score of 63%. I am thinking about taking Java SE 7 Programmer I (1Z0-805) in a few months. Please give me advice whether if I should take (1Z0-804) or (1Z0-805).  I graduated with my masters in Physics, specialized in computational physics. I wrote programs in C for 4 years. I took Intro to Java I in college. I have been using Java at work for almost two years. Work programs are very specific and I am not a full time programmer, which means I cannot rely on my work experience for this exam very much. I will be using the following book.

Java Programming Learn Advanced Skills from a Java Expert by Poornachandra Sarang (Currently Reading)
OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804) (Certification Press) by Sierra, Kathy
Oracle Certified Professional Java SE 7 Programmer Exams 1Z0-804 and 1Z0-805: A Comprehensive OCPJP 7 Certification Guide (Expert's Voice in Java) by Ganesh, S G

I am planning to buy self-test from Kaplan a few weeks before I take the test. I will also buy a set of test from Enthuware Software. Enthuware's questions are very challenging. Please let me know if I should add anything on list for this exam. Thank you very much in advance.
7 years ago