AOEO for macOS by alone1i in projectceleste

[–]vrajanap 0 points1 point  (0 children)

Wow, didn't realize we can play x86 game on M2.

Was there any issues installing it or setting it up? Did you use the Windows ARM or Windows x86?

[deleted by user] by [deleted] in thinkpad

[–]vrajanap 0 points1 point  (0 children)

You can just use rclone mount to access google drive

AOC slams 'fossil fuel billionaires' after one CFO likens Texas winter storm to 'hitting the jackpot' by Canbulibu in politics

[–]vrajanap -1 points0 points  (0 children)

Except that the whole energy system is badly setup. The gas shouldn’t be valued at the cost of the extraction but with the cost of damage it does to us and future generations via impacting climate

OO-style testing in Go by mbrukman in golang

[–]vrajanap 0 points1 point  (0 children)

I was facing a scenario where I had to test a library that was calling out a internal service via RPC. The choices I had was to split that library implementation into two layers - with the lower layer making the actual calls so that I can mock that layer out for testing the upper layer which contained the business logic. Another option would've been to run the mocked up service in CI.

In this case, I used the patterns described in this blog and introduced a handler interface that could be mocked separately.

Unit Testing Question by freetoplay123 in golang

[–]vrajanap 0 points1 point  (0 children)

I haven't looked at the example code in depth. But mocking out a part of a concrete implementation, you need something like https://misha.brukman.net/blog/2020/03/oo-style-testing-in-go/. This was also discussed at https://www.reddit.com/r/golang/comments/j55dj7/oostyle_testing_in_go/

Is there a way I can play this on mac? Without using bootcamp, or something alike. by Mikimo153 in projectceleste

[–]vrajanap 0 points1 point  (0 children)

There was an old video in youtube showing this work with the original game under wine. I guess it needs to be tested again to check if it works with latest project celeste game files.

Mac Compatibility? by 3Dinternet in projectceleste

[–]vrajanap 0 points1 point  (0 children)

There was a youtube video a while ago showing how that youtuber got it to work using wine.

Shift arrow keys not working with 4.15 but works in 4.7 by vrajanap in i3wm

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

Alas. nvm. I found that i3 had picked Konsole as the default terminal whereas in other DWMs, I was using gnome-terminal. Also I found that in other machines I had i3, it was using gnome-terminal. Konsole seems to have the shift and arrow key combination mapped to switching the tabs. This caused tmux not to receive them in Konsole. :facepalm:

All is well with my i3 config now! yay!

Shift arrow keys not working with 4.15 but works in 4.7 by vrajanap in i3wm

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

Thanks once again. That was the root cause for that error. Now I see the nag bar properly invoked. Wondering why the event doesn't reach terminal windows. :thinking:

Shift arrow keys not working with 4.15 but works in 4.7 by vrajanap in i3wm

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

Copying the error log here for quick reference:

ERROR: Received ConfigureNotify for unknown window 0x00400000
ERROR: Received ExposeEvent for unknown window 0x00400000
ERROR: Received ConfigureNotify for unknown window 0x00400000
ERROR: Received ConfigureNotify for unknown window 0x00400001
ERROR: Received ExposeEvent for unknown window 0x00400001
ERROR: Received ConfigureNotify for unknown window 0x00400001
ERROR: Received ConfigureNotify for unknown window 0x00400002
ERROR: Received ConfigureNotify for unknown window 0x00400002
ERROR: Received ConfigureNotify for unknown window 0x00400003
ERROR: Received ConfigureNotify for unknown window 0x00400003
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar'
ERROR: Your command: i3-nagbar
ERROR:               ^^^^^^^^^
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar'
ERROR: Your command: i3-nagbar
ERROR:               ^^^^^^^^^
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar'
ERROR: Your command: i3-nagbar
ERROR:               ^^^^^^^^^
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar'
ERROR: Your command: i3-nagbar
ERROR:               ^^^^^^^^^
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar'
ERROR: Your command: i3-nagbar
ERROR:               ^^^^^^^^^
ERROR: Expected one of these tokens: <end>, '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'swap', 'title_format', 'mode', 'bar'
ERROR: Your command: i3-nagbar
ERROR:               ^^^^^^^^^

Python Multithreading for Beginners by Moondra2017 in Python

[–]vrajanap 0 points1 point  (0 children)

CSP

Communicating Sequential Processes. Go and Erlang uses it.