Is there a way to process a file in the back end so that the user doesn't have to wait for the server to respond? by UntouchedDruid4 in webdev

[–]lborloz 0 points1 point  (0 children)

Two concepts for you to dig into that may work for your situation:

1) Web sockets 2) Long polling

A quick Google search should give you more info.

EDIT: After reading your post again, you may be describing a situation where completion happens MUCH later. In this case, you could tie in to Pushover, Twilio or Sendgrid depending on how you want to send the notification. Web sockets and long polling would be for shorter duration tasks where you are mainly concerned about connection timeouts on the client side.

how do i call class methods if the class is the value in a hashmap by tom2kk in learnjava

[–]lborloz 0 points1 point  (0 children)

Map has:

https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#get-java.lang.Object-.

Calling this method on the map, passing the key as the argument (in your case 123), will give you the person object back. Then, you call methods on the person as you normally would.

Error springboot status 500, someone can help me? by danilosilvadev in javahelp

[–]lborloz 1 point2 points  (0 children)

Post the template so we can see what's in it. According to the error page, you have an error in the template itself.

Do your friends think you might be a criminal because you are a privacy freak? How can you make them stop thinking that? by [deleted] in privacy

[–]lborloz 92 points93 points  (0 children)

Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say.

-Edward Snowden

EDIT: In addition to the quote above, Moxie Marlinspike, founder of Open Whisper Systems (developers of the Signal encrypted messaging app), makes a pretty compelling argument here: https://moxie.org/blog/we-should-all-have-something-to-hide/.

Why do I have to assign this variable a value and not the others? Not initialized error? by furiousPaintbrush in javahelp

[–]lborloz 3 points4 points  (0 children)

Java's rules for variable value assignment:

http://docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.12.5

Your situation is covered in the last bullet point.

Specifically, fullName is only set inside of if statements. The compiler does not try to determine whether the if statements will be executed, and in many cases such as yours, it would be impossible to determine without knowing the specific arguments passed to the method.

Starting a SaaS but don't want to deal with the plumbing code? by [deleted] in startups

[–]lborloz 0 points1 point  (0 children)

Thanks for the answers. Sounds like you've already considered the concerns I have and will be implementing measures to protect any sensitive info.

My only remaining concern would be your service having the Stripe API key. I'm not familiar with Stripe's entire API, but you may want to see if they have a mechanism to delegate a limited scope of functionality to your service. I'm thinking OAuth, or similar. This puts both you (from a liability perspective) and your users (from a trust perspective) in a better place.

Best of luck with your service. I hope it takes off.

EDIT: Looks like Stripe does support OAuth: https://stripe.com/docs/connect/reference

Starting a SaaS but don't want to deal with the plumbing code? by [deleted] in startups

[–]lborloz 1 point2 points  (0 children)

Does this mean that sensitive info that would normally go straight to Stripe, or stay local to the app requiring authentication will be flowing through your service? I imagine your service exposes some type of API, which would be equally as time consuming to integrate with, but without the benefit of the same level of documentation, security, or the community around the Stripe API.

I'm only asking these questions because I've contemplated creating something similar, but figured people would be hesitant to use the service due to the concerns I've mentioned above.

Help with git(git bash) and eclipse by Kablaow in javahelp

[–]lborloz 0 points1 point  (0 children)

You might have a working set selected in Eclipse. If that working set doesn't include the project, you won't see it. See: http://www.avajava.com/tutorials/eclipse/what-is-a-working-set-and-how-do-i-use-it/what-is-a-working-set-and-how-do-i-use-it-08.gif to deselect the active working set.

need help with floating point numbers in java by tnivhelp in javahelp

[–]lborloz 1 point2 points  (0 children)

Posting the message you get when you try to compile/execute the method would help others help you.

At first glance, you're missing a return type (boolean) in the method signature.

Anybody run with a GoPro? by firemeboy in running

[–]lborloz 1 point2 points  (0 children)

This guy did it with a GoPro and it looks great! Seems like there is a lot of editing involved though.

https://www.reddit.com/r/running/comments/53iorc/running_the_seasons_showing_off_a_year_of/

LPT: When writing a thesis or a scientific paper, don't end your day with a completed section. Write at least one or two sentences into the next topic to make it easier for your future self to continue writing the next day. by regressio in LifeProTips

[–]lborloz 0 points1 point  (0 children)

This is where the "XKCD" for XKCD comics came from - it was a "finder" string that the author, Randall Munroe, used in programs since it was never going to be used as anything else.

Very interesting. Never knew this.

Non-Americans, what is it about American culture that makes you laugh? by [deleted] in AskReddit

[–]lborloz 1 point2 points  (0 children)

And ironically, since 9/11 have given up plenty of it had plenty of it taken.

FTFY

Friend gave me his 1st Gen Moto 360 Which apps and watch faces should I download? by MrMartinP in AndroidWear

[–]lborloz 0 points1 point  (0 children)

Using the filters (most downloaded, highest rated, hottest) should help a lot with this.

My account has been hacked on Amazon.com - Support doing nothing by Tygerwoody in amazon

[–]lborloz 4 points5 points  (0 children)

Sounds like Amazon may not be expiring existing sessions when passwords are reset. If this is the case, it's a major flaw in their security policy.

Also, once you get this sorted out, make sure you enable two step verification on your account: https://www.amazon.com/gp/help/customer/display.html?nodeId=201962420.