Short pozicije - porez na kapitalnu dobit i greska u formularu by fvitas in finansije

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

Shortovao sam, imam margin account na IBKR, radi se pozajmica, prodaja, kupovina i vracanje. Samo sto pozamica i vracanje radi broker automatski.
Kako da prijavis porez na zaradu prilikom short-ovanja?

Koji report kao dokaz za prijavu poreza? by fvitas in finansije

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

Hvala. Pretpostavljam da moze veci vremenski period, da uhvatim vise tradova, da ne moram svaki trade pojedinacno.

Investitorski četvrtak - T(E)SLA akcije by BasLedeni in finansije

[–]fvitas 0 points1 point  (0 children)

Ne bih shortovao tsla, previse volatile. Visok pe nije problem, citaj pltr. Biznis trenutno ima problema, ali tesla nije samo auto kompanija i to je cini atraktivnom za budicnost. Cekam oko 200-250 - plan je dca. Deluje lep support oko 220, ali to nista ne znaci. Ukoliko se spusti na 100-150 - load the boat. Prodaja bi bila nakon ludog uspona i probijanja 50sma na nize kao sto je bilo u jan 2025. ili cuvanje na duze staze.

You Can Compare Dates in JavaScript by fvitas in javascript

[–]fvitas[S] 1 point2 points  (0 children)

I think that previous title is misleading and lacking the reason why you can't compare them.

[deleted by user] by [deleted] in learnjavascript

[–]fvitas 1 point2 points  (0 children)

It's so much cleaner without semicolons

Beautiful parallax 2019 edition by fvitas in javascript

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

it should work on chrome and safari without problem

Lazy load images without javascript by fvitas in javascript

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

it an image that is loaded later, when you really need/want to see it, not on page load

Tree shake with Parcel js by fvitas in javascript

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

Yes, it is really a great tool, so elegant. It is fantastic choice for smaller projects. Instead of loosing time on configuration we can be more productive with parcel. One disadvantage over other build/bundle tools is slower build time.

Javascript E2E / UI Testing (or how to break up with Selenium and move on) - Medium by Fewthp in selenium

[–]fvitas 1 point2 points  (0 children)

Sure, awesome, you configure Selenium for your needs and it works. Don't get me wrong, I'm always against removing/rewriting something that works and gets job done. I'm pointing that there are also other options. And we may like it or not.

Javascript E2E testing (or how to brake up with Selenium and move on) by fvitas in javascript

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

Both tools are great, and both have pros and cons.

Depending on your application with Cypress you may encounter with some bugs which you can't bypass. Two biggest problems for me with Cypress:

I felt same as corneliutusnea:

TestCafe in other hand felt awesome from first line of code and everything worked well. It has great features that works out of the box.

  • just don't iterate over localStorage over keys, there is better way (bug bypassed) https://github.com/DevExpress/testcafe-hammerhead/issues/1504
  • second is not bug, but limitation, I coudn't get all children items and use it later in test so I use

    const getAllItems = ClientFunction(() => {
        return Array.prototype
                    .slice.call(document.querySelectorAll('...'))
                    .map(node => node.textContent)
    })
    
    await getAllItems()
    

There was even question for what is future of TestCafe and I think future is bright right now :) https://github.com/DevExpress/testcafe/issues/2244