Dana Ucaed

Ranch Hand
+ Follow
since Aug 21, 2016
Dana likes ...
Netbeans IDE Oracle Windows
Cows and Likes
Cows
Total received
6
In last 30 days
0
Total given
0
Likes
Total received
36
Received in last 30 days
0
Total given
974
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Dana Ucaed

You want to guess the protocol.

So, if I have a url: www.example.com, I want to try with http. https and if I got 200 it is Ok.

3 weeks ago
Hello,

I have a URL: www.example.com and I don't know what is the protocol.
I used the URL class , but I got malformed exception.

It is possible that that URL is invalid.

I think that I can verify if the protocol is http:// + URL the response code id 200.

I would appreciate any help.

The browser knows the made redirects, but the URL class don't.

Thanks
3 weeks ago
Hello,

I need to verify if a web site is well indexed.

So, I need to parse the robots.txt for each web site.

So, I have a issue when the file contains many User-agent tags.

So, for example:

Sitemap: https://lxxxxxxx/googlesitemap.xml

Request-rate: 1/10
Crawl-delay: 10
Visit-time: 0000-0445

User-agent: *
Disallow: /cs-admin
Disallow: /index.php?page=cart
Disallow: /index.php?page=checkout
Disallow: /articole/contact.html

User-agent: CazoodleBot
Disallow: /

User-agent: MJ12bot
Disallow: /

User-agent: dotbot/1.0
Disallow: /

User-agent: Gigabot
Disallow: /

User-agent: 008
Disallow: /

User-agent: Yandex
Disallow: /

User-agent: Baiduspider
Disallow: /

User-agent: AhrefsBot
Disallow: /

User-agent: Synthesio
Disallow: /


I need to extract only Disallow: tags after User-agent:*.

So, I can read the robots.txt and extract the information like this:

User-agent: *
Disallow: /cs-admin
Disallow: /index.php?page=cart
Disallow: /index.php?page=checkout
Disallow: /articole/contact.html

How can do that?

Thanks for a hint.
2 months ago
ROL is my currency.

I live in Roumania.

4 months ago

Carey Brown wrote:Seeing how "1.774.00" is not a double in the U.S.. What double would you expect (like) it to be?



I don't live in US.

I expected 1774.00.
4 months ago
The source of input String is a price placed on a shopping web site.

Yes, I know that I am not use the DecimalFormat.

4 months ago
Hello,

I wrote the method:




I got the exception:

java.lang.NumberFormatException: multiple points


How can resolve this exception?




4 months ago
Hello,

I have 2 hashmap defined so:


and the class Product :



and if I verify




My code returns false and I don't know why.

Thanks again,




4 months ago
Hello,

I need to store the some information from a row of a table.

I think that I can store in a generics array, so define List<? extends Object>.


But when I add the string variable I got one error that I can't understand: no suitable method found.
 


If I define List<? extends Object> don't you add  everything in this list?


Thanks again,









4 months ago
=======send email start
null
=======end email
com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. i10-v6sm8616244wmf.4 - gsmtp

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2343)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1808)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1285)
at javax.mail.Transport.send0(Transport.java:255)
at javax.mail.Transport.send(Transport.java:124)
at frameworkcontentspeed.Utils.SendEmailAtachament.SendEmailAnda(SendEmailAtachament.java:353)
at frameworkcontentspeed.Utils.SendEmailAtachament.main(SendEmailAtachament.java:479)
4 months ago
Hello,

I have a issue with gmail:





Sometimes it works, sometomes it is not working.

My exception is:

Sending the email to the following server failed : smtp.gmail.com:465

I send a email to Google and I am waiting a response.

Thanks,



4 months ago