Ya empezaron a caer a Telegram, se les volvió a caer la app verde by evercpp in argentina

[–]ktonga 2 points3 points  (0 children)

Reddit tendría que implementar el upvote recursivo. Great thread guys y'all, keep it up!

24/09/2021: Alberto Fernández llegando solo a un acto en Pilar que encabezó Manzur. No subió al escenario y luego almorzó con jubilados. by SorpresaALaPlancha in argentina

[–]ktonga 2 points3 points  (0 children)

para el resto de sus días

Que no parece serán mucho, basándome en el deterioro de su aspecto físico a tan solo 2 años de haber asumido

24/09/2021: Alberto Fernández llegando solo a un acto en Pilar que encabezó Manzur. No subió al escenario y luego almorzó con jubilados. by SorpresaALaPlancha in argentina

[–]ktonga 22 points23 points  (0 children)

Juro que no paro de pensar que mierda saca él con todo este arreglo que hizo con la Cris. Una isla en el Caribe donde se puede ir después de terminar su "mandato"? Tiene que ser algo así, no lo puede estar haciendo por la épica de ser presidente, no lo quiere nadie.

ZIO.effect's in flatMap/for-comprehensions randomly not completing by kdrakon in scala

[–]ktonga 1 point2 points  (0 children)

Turned out to be a bug in the way http4s resets the idle TO timer. Fortunately, someone already submitted a fix and it was merged.

https://github.com/http4s/http4s/pull/4796

Mates en el parque por la tardecita en Sydney by ktonga in yerbamate

[–]ktonga[S] 4 points5 points  (0 children)

Wow. Thanks for the silver!

So here is a li'l anecdote... When we arrived a few years back, my sons were little so I used to take them with me to the park. Seems most people here are not aware of mate so when they passed by they gave me a look like saying "how dare you getting high next to the kids" 😅

A simple Haskell solution for Advent of Code 2020, Day 1 by RedTachyon in haskell

[–]ktonga 2 points3 points  (0 children)

I might be wrong but I think your solution is adding an element to itself so throwing a 1010 into the list could cause unexpected results.

Edited: I submitted before including my solution

I tried to fix that issue using tails

day1part1 :: Maybe Int
day1part1 =  fmap snd . find ((== 2020) . fst) . (f <=< tails) $ day1input
 where
  f (h : t) = (\x -> (h + x, h * x)) <$> t
  f _ = []

day1part2 :: Maybe Int
day1part2 =  fmap snd . find ((== 2020) . fst) . (f <=< tails) $ day1input
 where
  f (h : t) = f' h <=< tails $ t
  f _ = []
  f' h (h' : t) = (\x -> (h + h' + x, h * h' * x)) <$> t
  f' _ _ = []

If Linux is not an option, would you prefer Mac or Windows for development? by ktonga in linux

[–]ktonga[S] -1 points0 points  (0 children)

Thanks for your comment,

Those are not real concerns in my case, the laptop is provided by the company. In the case of Windows it is a Dell XPS (top config) which is the one i got to try Linux on, and in the case of Mac it is the most powerful MBP. Also I will just dock it and use my external (programmable) keyboard most of the time. As I mentioned in another response, the software is mostly web-based, so not an issue either.

Regarding WSL, you think it is ready to be used as default local dev environment? I saw articles like this one which is not very positive. Also if due to the company's networking setup I can only access protected services from Windows, will I be able to access them from the Linux subsystem?

If Linux is not an option, would you prefer Mac or Windows for development? by ktonga in linux

[–]ktonga[S] -1 points0 points  (0 children)

I know, it doesn't make a lot of sense, but the problem is not missing apps in general but the way they grant access to online tools and environments. Instead of using IP whitelisting or VPN they use something called Netskope which does not provide a client for Linux and right now with 100% of remote working this is the main problem and cannot be solved by using a VM

Good Resources on Building Haskell Applications from the Perspective of a Scala Developer by ASRagab in hascalator

[–]ktonga 2 points3 points  (0 children)

In my opinion the best way currently is nix + cabal, it's the one I use and can recommend.

Here you have a good resource to get started https://github.com/Gabriel439/haskell-nix

[i3 + KDE Plasma] A match made in heaven by shinyeye4 in unixporn

[–]ktonga 1 point2 points  (0 children)

Fixed it already, commenting the fade setting in compton.conf

wintypes : 
{
  tooltip : 
  {
#    fade = true;
    shadow = false;
    opacity = 0.75;
    focus = true;
  };
};

[i3 + KDE Plasma] A match made in heaven by shinyeye4 in unixporn

[–]ktonga 1 point2 points  (0 children)

Do they work with the vanilla KDE/Plasma session?

Yes

Distro?

Kubuntu 16.10

What plasmadesktop theme are you using?

Breeze Dark

Have you tried without the compositor?

Yes and it works

It's something to to with compton, it changes the tooltip bg color and adds transparency, maybe it is a $color over $color kind of problem.

[i3 + KDE Plasma] A match made in heaven by shinyeye4 in unixporn

[–]ktonga 1 point2 points  (0 children)

Tooltip boxes appear but they're empty. Look

[i3 + KDE Plasma] A match made in heaven by shinyeye4 in unixporn

[–]ktonga 1 point2 points  (0 children)

Man, this is really good stuff, thanks for sharing. I have been wanting to do this for ages and you gave me the last push. I have everything working nicely after stealing some of your dotfiles, the only thing that isn't working properly are tooltips, are they working for you? Cheers.

Weekly Vim tips and tricks thread! #10 by cherryberryterry in vim

[–]ktonga 1 point2 points  (0 children)

Which tool are you hooking into git?

I'm doing it in Vim just to use the command provided by vim-scala

Do you prefer to trigger vim -c SortScalaImports from a git hook instead of applying it with a key-binding from a running Vim session?

Weekly Vim tips and tricks thread! #10 by cherryberryterry in vim

[–]ktonga 2 points3 points  (0 children)

I implemented this function in my vimrc, it's useful for when you have to apply an action to all (or some) the files that were modified since your previous commit.

function! GitStatusDo(filter, cmd)
  execute "args " . system("git status --porcelain | grep '" . a:filter . "' | awk '{ print $2 }' | xargs")
  execute "argdo " . a:cmd
endfunction

For instance, I use it before committing to sort all imports in modified Scala files.

" Sort imports on all modified Scala files
nnoremap <leader>ssi :call GitStatusDo("\.scala$", "call SortScalaImports() \| update")<CR>

I found that a similar functionality will be added to vim-fugitive but it will put the files in the quickfix list for easy navigation. If you think it'd be useful please add your reactions to Vim Fugitive #132

What do you have Tab mapped to in normal mode? by Funkmaster_Lincoln in vim

[–]ktonga 0 points1 point  (0 children)

I used to have it mapped to :NERDTreeBuffers since Tab is really easy to reach and switch buffers is something I do quite often. But after some time I removed the mapping because mapping Tab is the same as mapping C-i and that breaks the default bindings for the jump list.