HN2new | past | comments | ask | show | jobs | submit | amar-laksh's commentslogin

Lol fair, done.


Bloody love lazygit!


Oh thanks! I was looking for something similar when I posted.


Nope: Decade of public spending cuts, crazy regional and national inequality, and right wing agitprop from the major political parties and media etc.


Yeah I'd say the misinformation about the original crime's perpetrator was the main cause for all these issues. There were already a lot of worries about immigrants and asylum seekers, which had been weaponised by a far right wing media and online fake news sources, and the association of the recent attack with someone from that group just lit the spark that set it all off.

Could drugs have had an effect here? Maybe, but I suspect the same issues would have occurred regardless due to deep seated issues with extremism and misinformation in society.


Not sure about anything else, but love the animation!


Then you should check out ratatui.rs (different project, same author) and maybe its presentations on yt for more awesomeness of that kind.


Amazing animation (and idea) indeed, as someone who loves using the terminal and sometimes - only sometimes - like to see something new like this.


The scrcpy project is already great for this: https://github.com/Genymobile/scrcpy

Here's a little script for streaming through your camera on obs:

get-adb-devices-list() { adb devices | grep -v "List of devices attached" | grep -v "daemon" | grep -v "^$" | grep -c . }

echo "device count: $(get-adb-devices-list)" while [ "$(get-adb-devices-list)" -eq 0 ]; do echo "Waiting for the device..." sleep 0.5 done

IP_ADDRESS=$(sudo adb shell ip addr show wlan0 | grep "192.168.." | awk -F ' ' '{print $2}' | cut -d '/' -f1)

connect-adb-tcp () { sleep 1 echo "Connect to the device...$IP_ADDRESS" && \ adb tcpip 5555 && \ sudo adb connect "$IP_ADDRESS" }

connect-adb-tcp && \ v4l2-ctl --list-devices && \ scrcpy -e --v4l2-sink=/dev/video0 --lock-video-orientation=1 -n -N &> ./log & obs


scrcpy is awesome! Native support for streaming the camera directly (vs. streaming a screen capture of the camera app) is coming soon: https://github.com/Genymobile/scrcpy/pull/4213

For folks willing to build from source, I have an additional commit on top of the PR (linked in the comments) that enables support for Android's constrained high speed capture mode, allowing 120fps/240fps camera streaming. Not the most useful for meetings, but enables things like capturing high frame rate mixed reality VR footage. As far as I'm aware, there's no other Android webcam app, proprietary or open source, that can do anything above 60fps.


Do you know if there are any devices where the high FPS mode can be used not only for capture but also for the image analysis use case?


I don't think this is possible, at least not directly. My understanding is that there's a special optimized path for CameraConstrainedHighSpeedCaptureSession recording to MediaCodec surfaces backed by a hardware encoder. If you capture to a different type of surface, the frame rate will likely drop to 60 or lower (assuming it's even allowed--I have not tested).

I'm not too familiar with image analysis, but if it's acceptable to work on lossy frames and to take a small hit to latency, you could record to a MediaCodec hardware encoder and then immediately send the output to another MediaCodec instance to decode it.


I love how nerdy we are here.

Imagine telling my wife:

Here's a little script for streaming through your camera on obs:

get-adb-devices-list() { adb devices | grep -v "List of devices attached" | grep -v "daemon" | grep -v "^$" | grep -c . }....

:)))))


Obviously, should your wife be non-technical, you'd put that script in a file and tell her to double-click it. Or just set the whole thing up for her so it magically works.


Astoundingly, there are non-technical households out there.


Looks like you have quite the adb arsenal there, so maybe you have any suggestions for the two things missing from mine:

1. setting a static ADB/TCP port or automatically sending it to the PC (Android now changes it every time)

2. enabling ADB/TCP on mobile hotspot (Android complains "Please connect to WiFi")

Other than those two things, between scrcpy, KDE Connect and Waydroid, the Linux-Android integration is basically perfect and makes even the Applers jealous.


You have to do adb tcpip for wireless adb once in a usb mode per boot, I actually just use port forwarding of all pc port to localhost using ssh, I have a bash script using nmap to find ip


Is there a way to do the reverse, i.e., seeing the computer screen on an Android device?

Specifically I would love a way to use my Android device as a remote controller for PDF presentation. For now I can do this with KDE Connect but the remote controller is blind, I have no way to see the current slide on the Android device, much less to use it to annotate the slides in live.

Does that exist?


Use a vnc client on your android device and setup a virtual monitor on your desktop that is really a vnc server.

I know how to do that with Sway and swayvnc on wayland, as well as with xorg.

https://superuser.com/questions/1434779/using-a-tablet-as-a-...

https://www.reddit.com/r/swaywm/comments/k1zl41/thank_you_de...

This is particularly helpful to people using asahi linux and wanting to connect an external monitor. That can be done with something as simple as a raspberry pi.

EDIT: apparently this project help achieving the same thing on different OS but using webRTC and a browser:

https://github.com/pavlobu/deskreen


This is a bit out of left field, but if you're a web developer you can use Browsersync to control a web page across multiple browsers (even on different devices). So really you "just" need a good PDF viewer on that web page.


I've had a great experience with AnyDesk.

You'd install the client on your computer:

Windows: https://anydesk.com/en/downloads/windows

Mac: https://anydesk.com/en/downloads/mac-os

and then on your phone:

Android: https://play.google.com/store/apps/details?id=com.anydesk.an...

iOS: https://itunes.apple.com/us/app/anydesk/id1176131273


I've been thinking a lot about this kind of use case, and I'm more and more convinced we just need better ways of handling web content on the LAN.

Like, no matter what, the UX will probably be meh just trying to mirror screens. Instead the presentation app could give you a QR code with a TLS cert in it, and you could scan it and get a secure connection to it's mobile optimized web remote UI.

We are really nowhere near using the full potential of all the devices and connectivity we have.


There are many remote view/control apps but they're mostly built for remote support and screen sharing.

But I share your want of an quick and easy way to use my phone as a keyboard and mouse for a "remote" computer in the same room as me

This one was usable but not very polished IMO https://play.google.com/store/apps/details?id=com.panda_nood...



Google slides used to be able to do that (and office365 too if memory serves right) but this is definitely not self-hosted/managed.


Chrome Remote Desktop has worked for me in the past. Not very ergonomic on the phone, though.


They updated it like a couple months ago I think. It is a bit better now


Nomachine,xpra,x2go and vnc


VNC client?


Parsec could work


Unfortunately, I've become a MacOS (ARM) user recently and start to notice such small misfortunes here and there like your solution being not applicable to MacOS.


Will scrcpy work on Alpine Linux.


I never heard anyone say that we need to summarize, and/or note sections and quotes movies and shows. I just want to enjoy my books as I read them. That's it.


Please stop building git CLIs, just use LazyGit and be done with it: https://github.com/jesseduffield/lazygit


I feel nobody seems to be talking how LLMs can be used in training humans to teach better. fundamentally the process of getting a desired outcomes from such a model involves nudging it to ask and answer better questions right? so why don't we use it as a training tool across domains. Teacher training across multiple subjects could really use this!


If you want the most amount of customization in a camera app, try the FOSS FreeDcam [1] It's incredible!

[1] https://github.com/KillerInk/FreeDcam


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: