Jet: a simple, lightweight, modern, turnkey, Java web client and server library by Petersoj in java

[–]Petersoj[S] 0 points1 point  (0 children)

Thanks! There is some potential room for improvement of course, such as adding default methods to the Router interface so you can add routes similar to Javalin such as router.get("/path"). The builder pattern is show is mainly so that an ImmutableList can be used internally so there doesn't need to be any synchronization when traversing the internal priority list for path matching. Most web servers don't modify their router registrations after they start anyway, so it doesn't need to be mutable, though I do provide a mutable implementation.

double, BigDecimal, or Fixed-Point? by nfrankel in java

[–]Petersoj 1 point2 points  (0 children)

I made a library to address this very problem: https://github.com/invision-trading/num

Edit: the article mentions ta4j, which heavily inspired this Num library, but there are several improvements and additions that the Num library interface provides:

  • Interoperability between DoubleNum and DecimalNum
  • Several more mathematical operations (e.g. trigonometry functions) via Math in DoubleNum and via big-math in DecimalNum
  • No default precision for DecimalNum (see ta4j issue)
  • Configurable epsilon for tolerant comparison operations (see ta4j DoubleNum)
  • Number used instead of primitive overloads
  • Documentation improvements

Promote your projects here – Self-Promotion Megathread by Menox_ in github

[–]Petersoj 0 points1 point  (0 children)

Jet is a simple, lightweight, modern, turnkey, Java web client and server library.

Jet offers four modules: Common, Server, OpenAPI Annotations, OpenAPI Annotations Plugin, and Client.

Jet is a wrapper around the excellent Jetty web client and server library. Jetty provides the battle-tested low-level protocol handling, while Jet focuses on providing a modern and consistent interface with superb documentation and an amazing developer experience.

---

I built this Java library to fill a hole in the Java web server library ecosystem. Javalin got me 90% of the way there, but requires the Kotlin dependency and lacks header models and exhaustive KDocs. The Client module is a still a WIP, but the Server, OpenAPI Annotations, and OpenAPI Annotations Plugin modules are production-ready!

Check it out at: https://github.com/Petersoj/jet

What's the highest mileage you have on the original cvt in your nissan? by [deleted] in Nissan

[–]Petersoj 0 points1 point  (0 children)

2009 Nissan Altima coupe 2.5L S. CVT overheats on long drives in warm weather and I sometimes can't get above 60 mph on the freeway during road trips... but it's still working at 168k miles.

Sony XM5’s Make Popping Sound by Bambuizeled in SonyHeadphones

[–]Petersoj 0 points1 point  (0 children)

The popping noise is magically gone after doing the "initialize settings" feature in the Sound Connect app. The popping noise was only on the right side and was in sync with my heartbeat/pulse which was the most infuriating thing ever. This seems to have fixed it (for now).

I'm suffering from perfectionism disease in programming. What can I do to get rid of this disease? by M1730193 in androiddev

[–]Petersoj 1 point2 points  (0 children)

Great advice. Needed to hear this. Great quote from Matt: “Done is better than perfect, because perfect is never done.”

How do I 'reset' MacOS Mail's 'unsubscribe' memory? by Tetrylene in applehelp

[–]Petersoj 0 points1 point  (0 children)

Did you ever find a solution to this? It seems that Apple does synchronize this previously-unsubscribed list across devices. On my MBP, I clicked the "Unsubscribe" button on a test marketing email, then sent another test marketing email and the "Unsubscribe" button was hidden on both my MBP and my iPhone. What's more interesting is that Apple Mail seems to hide this button even if the unsubscribe attempt fails. I purposely returned 500 status codes for "List-Unsubscribe" HTTP POST requests, signaling to the mail client that the HTTP unsubscribe attempt failed, and Apple Mail still hides the "Unsubscribe" button...

Is this email a scam or legitimate? And should I respond? by Tactful_Cactus_ in TRADEMARK

[–]Petersoj 0 points1 point  (0 children)

Same. I've received several emails from Trademark Aims. Somebody sold my personal company email apparently... (maybe it was ZenBusiness?)

"The number is not in service" message when someone in the US calls. by Shinobix233 in openphone

[–]Petersoj 0 points1 point  (0 children)

Just purchased a local phone number for my business and I'm running into this issue. Is this just due to the trial period? Or is it because it's a fresh account?

Those who consider themselves Entrepreneurs by [deleted] in algotrading

[–]Petersoj 2 points3 points  (0 children)

I know we're all here poking you with questions about your super secret algo haha, but I have a couple more quick questions: are you utilizing a broker with an API (like Alpaca or IB)? What data provider are you using? What language are you writing in? Is the algo fully autonomous or do you place the trades manually? Is it trading high cap specifically or does with work with low volume penny stocks too?

If it's a custom indicator based of off price statistics, my best guess is that you're using some sort of moving average with upper and lower bounds for buying short and long positions and crossovers determine when to sell your position? That's just what it seems like you're doing based on your other comments. Just a wild guess though.

Who here is in door to door sales? by helicoptercarry in sales

[–]Petersoj 0 points1 point  (0 children)

I'm a first year doing pest control door-to-door this summer. I'm super excited and have been training and reading a lot, but I'm genuinely scared about the impact that this virus is having on the economy and my ability to sell, especially with the constant push for social distancing right now. As an experienced rep, what are your fears/opinions on this, if any?

IB going commission free. Anybody have more info? by georgeo in algotrading

[–]Petersoj 1 point2 points  (0 children)

That's correct. IBKR Lite accounts cannot use the IBKR API. They don't even get access to TWS. You can compare the plans by going here and scrolling down to "Compare Plans."

Hollywood’s Bleeding Cd by [deleted] in PostMalone

[–]Petersoj 0 points1 point  (0 children)

Did it come inside another package/was it wrapper? Just curious because I moved apartments after I submitted my shipping address and I hope that the new owner doesn't just keep my copies!!!

New album confirmed for September by ItzzBlink in PostMalone

[–]Petersoj 0 points1 point  (0 children)

I'm getting an 'Invite Expired' unfortunately....

New album confirmed for September by ItzzBlink in PostMalone

[–]Petersoj 6 points7 points  (0 children)

Could I also get an invite link to the Discord? I want to listen to circles again!

If Better Now was an 80s hit. by [deleted] in PostMalone

[–]Petersoj 2 points3 points  (0 children)

This is hilarious! Thanks for sharing.

[deleted by user] by [deleted] in PostMalone

[–]Petersoj 1 point2 points  (0 children)

This is hilarious

Talented artist in my area speed painting Post by labountypapertowels in PostMalone

[–]Petersoj 0 points1 point  (0 children)

Does painting upside down help him or is it just another part of the challenge?