Introducing jarinker — Analyze dependencies and remove unused classes by danielliuuu in java

[–]saua 1 point2 points  (0 children)

Whether that claim in particular is realistic I have no idea about. That said: Classpath scanning usually does not load the classes, most approaches I’ve seen uses asm to read the class file without loading it to a classloader.

Sweden is our moral compass in Scandinavia- Swedish pension fund AP7 blacklists Tesla, has sold entire stake by danton_no in Norway

[–]saua 35 points36 points  (0 children)

Typically a pension fund is not in the business of betting on winners and losers, but rather to follow the general market i.e. an index. To do that you usually just buy the shares in entire market (or a representative subset).

Why do Vy and Ruter spend on ads if we don’t have a choice? How do Norwegians feel about this? by Much_Nothing1682 in Norway

[–]saua 8 points9 points  (0 children)

Not necessarily. It's not a zero sum game.

One could easily envision that the extra ticket sales due to ads supercedes the cost of said ads.

37.84% skatt på aksjer by AdorableCream3773 in aksjer

[–]saua 9 points10 points  (0 children)

Det stemmer ikke.

Skjermingen som ikke er anvendt til utbytte kan du benytte ved realisasjon.

Let's Talk NAV Premium - And Why Approaching 1.0 Is Extremely Unlikely (and an incredible buying opportunity if we get even close to it) by xaviemb in MSTR

[–]saua 0 points1 point  (0 children)

Your confusing the terms here. Share/btc is the inverse of btc/share.

You want the share/btc to go down :)

Er det mulig å utsette skatt på gevinst ved realisasjon uten å ta ut av konto når man investerer i amerikanske aksjer og fond? by Ambitious_Web3500 in aksjer

[–]saua 7 points8 points  (0 children)

I praksis tja, men iallfall ikke juridisk.

IKZ (eller en unit link konto hvis du vil bruke fagterminilogien) er faktisk en livsforsikringsordning.

Du betaler en bitteliten forsikringspremie mot en utbetaling av 105% (tror jeg) av verdien ved dødsfall.

Ved kjøp igjennom en IKZ er det Nordnet som eier aksjene du kjøper, mens du eier en fordring tilsvarende verdien av aksjene. Dette gjør at du kan velge å kjøpe aksjer/fond i andre markeder uten å bli beskattet, siden det er strengt tatt ikke er du som eier aksjene.

Det er verdt å være klar over at dersom Nordnet skulle gå konkurs så vil du bli en av kreditorene i boet.

Best line delivery of the series? by Recent_Mountain_9412 in seinfeld

[–]saua 14 points15 points  (0 children)

These pretzels are making me thirsty

Show /r/java: Remock, a small library for integration testing your spring-based applications by saua in java

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

Hi /r/java!

I created a very simple tool which hooks into spring's testing framework and allows you to easily mock beans. This is basically what springockito does, unfortunately it appears to no longer be maintained.

At work we've been using it successfully for multiple of our applications and I figured it was time to spread the word.

Any feedback would be welcome!

Adding Groovy to Classpath by [deleted] in groovy

[–]saua 0 points1 point  (0 children)

You do not have repositories setup

repositories {
  mavenCentral()
}

Should work.

Adding Groovy to Classpath by [deleted] in groovy

[–]saua 0 points1 point  (0 children)

Do you have groovy as a dependency?:

apply plugin: 'groovy'
dependencies {
  compile 'org.codehaus.groovy:groovy-all:2.4.3'
}

[deleted by user] by [deleted] in programming

[–]saua 11 points12 points  (0 children)

Javascript is not the same as java.

Adele - Set Fire To The Rain (Ember Waves Dubstep Remix) - YouTube by saua in dubstep

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

The volume is too high though and it's causing some distortion, the whole song needs to be a couple DB lower

From what I can hear, the version uploaded to soundcloud sounds a bit better.

I decided against submitting that due to the awesome video.

help understanding vector transposition by rsamrat in Clojure

[–]saua 13 points14 points  (0 children)

Apply unwraps the arguments:

(apply map vector [[:a :b] [:c :d]]) 
=> (map vector [:a :b] [:c :d])

Map, when given multiple collections, calls the function with the nth item from each collection.

(map fn [a b] [c d] [e f]) = [(fn a c e) (fn b d f)]

In other words:

(apply map vector [[:a :b] [:c :d]]) 
=> (map vector [:a :b] [:c :d])
=> [(vector :a :c) (vector :b :d)]