PumpkinDrama

joined 2 years ago
MODERATOR OF
[–] PumpkinDrama@reddthat.com 43 points 2 years ago* (last edited 2 years ago) (1 children)

I really like being able to edit the post title and the 6 hour top sort. Although I would like 3 or 4 hours even better.

[–] PumpkinDrama@reddthat.com 3 points 2 years ago

I like the idea of custom feeds that allow adding users, communities, instances or tags. That way you can personalize better what you see. So adding a single instance to the feed would be like looking at the local feed from that instance, but you could make many more kinds of feeds.

[–] PumpkinDrama@reddthat.com 3 points 2 years ago (1 children)

bicarbonate and water painted

That's what I've ended up doing, I've covered the spots with the bicarbonate and water paste and will leave it overnight and then I'm going to spray it with vinegar and remove it.

[–] PumpkinDrama@reddthat.com 2 points 2 years ago* (last edited 2 years ago) (3 children)

Google Gemini Powered AlphaCode 2 Technical Report

HumanEval achieved 74.4%, surpassing GPT-4 at 67%. It successfully solves 43% of problems in the latest Codeforces rounds with 10 attempts. The evaluation considered the time penalty, and it still ranks in the 85th percentile or higher. AlphaCode 2 already beats 85% of people in top programming competitions (which are already better than 99% of engineers out there). So, I believe AI already writes better short code than the average programmer, but I don’t think it can debug any code yet. I’d say it will need a platform to test and iteratively rewrite the code, and I don’t see that happening earlier than 3 years.

[–] PumpkinDrama@reddthat.com 2 points 2 years ago

It only has a shopping list, I'm looking for the features I mentioned above.

[–] PumpkinDrama@reddthat.com 3 points 2 years ago (2 children)

That's the one I'm currently using.

[–] PumpkinDrama@reddthat.com 1 points 2 years ago

Cool, that's what I was looking for. Thanks!

[–] PumpkinDrama@reddthat.com 2 points 2 years ago (2 children)

What I'm really looking for is the same tagging method of image boards where everyone collaborates tagging content. I think hashtags are just spam and tags are non disruptive metadata that can actually help organize content.

[–] PumpkinDrama@reddthat.com 2 points 2 years ago* (last edited 2 years ago) (1 children)

I don't know how image boards manage it, but they are always curated properly; I've yet to see troll tags.

 

To make a bunch of Python functions executable from anywhere in Manjaro Linux, you can follow these steps:

  1. Create a directory for your scripts: You can create a directory named bin in your home directory by running the following command in the terminal:
mkdir ~/bin
  1. Add the directory to your PATH: You need to add the bin directory to your PATH environment variable so that the shell can find your scripts. You can do this by adding the following line to your shell profile file (e.g., ~/.bashrc):
export PATH="$HOME/bin:$PATH"
  1. Make your scripts executable: You need to make your Python scripts executable so that you can run them from the command line. You can do this by adding a shebang line at the beginning of your script and making the script executable using the chmod command. For example, if your script is named myscript.py, you can add the following shebang line at the beginning of your script:
#!/usr/bin/env python

Then, you can make the script executable by running the following command in the terminal:

chmod +x ~/bin/myscript.py

After following these steps, you should be able to run your Python scripts from anywhere in the terminal by simply typing the name of the script (e.g., myscript.py) and pressing Enter. The shell will automatically find the script in the bin directory and execute it using the Python interpreter.

Source:

Citations: [1] https://unix.stackexchange.com/questions/3809/how-can-i-make-a-program-executable-from-everywhere [2] https://forum.manjaro.org/t/how-can-i-run-python-script-files-like-in-windows/84329 [3] https://stackoverflow.com/questions/6967331/how-do-i-install-a-script-to-run-anywhere-from-the-command-line [4] https://bbs.archlinux.org/viewtopic.php?id=158903 [5] https://github.com/Nuitka/Nuitka [6] https://askubuntu.com/questions/5172/running-a-desktop-file-in-the-terminal

 

Here is a step-by-step estimate of the amount of glucose an average male consumes in an hour:

  1. Estimate the person's basal metabolic rate (BMR). This is the minimum number of calories needed to sustain vital bodily functions at rest. For a male of average height and weight, the BMR is approximately 1,800 calories per day.

  2. Divide the BMR by 24 hours to get the hourly energy expenditure. 1,800 / 24 = 75 calories per hour.

  3. Glucose provides about 4 calories per gram. So if all calories came from glucose, the person would use about 18 grams per hour (75 calories / 4 cal/g = 18 g).

  4. However, the body uses a mix of nutrients for energy, not just glucose. Glucose may provide around 50% of resting metabolic calories.

  5. Therefore, if 50% of the 75 calories per hour are from glucose, that equals 37.5 calories from glucose per hour.

  6. With 4 calories per gram of glucose, 37.5 calories equals about 9 grams of glucose consumed per hour (37.5 cal / 4 cal/g = 9 g).

In summary, a rough estimate is that an average male at rest consumes approximately 9 grams of glucose per hour to meet 50% of basal metabolic energy requirements. This will vary based on the individual's exact weight, body composition, and metabolic rate.

 

It writes more informative commits than I could ever make so I'm just reading what it says and mostly copy/pasting completely most of the time, I write all of the changes I've made into an LLM with a large context window and it write a very detailed commit not just with a title but with bullet points describing each of the changes precisely

 

Hey fellow programmers,

I wanted to share a little experiment I've been conducting lately that has significantly improved my workflow. I've started using AI to generate my Git commit messages, and it's been a game-changer!

By feeding all the changes I've made into a language model with a large context window (LLM), the AI not only generates a concise commit title but also provides bullet points describing each of the changes in precise detail. The level of detail and informativeness it brings to my commit messages is incredible.

I used to spend a considerable amount of time crafting commit messages that accurately captured the essence of the changes I made. Now, with the help of AI, I find myself copy-pasting its generated messages most of the time. It's not just a time-saver; it also ensures that my commits are well-documented and easy to understand for my team members.

If you haven't explored using AI for your Git commits, I highly recommend giving it a try. It can significantly boost your productivity and help you maintain clean and informative version control history. Plus, it's a fascinating intersection of AI and software development!

Have you experimented with similar AI-powered tools for your programming tasks? I'd love to hear your experiences and any recommendations you might have. Let's discuss the future of AI in programming in the comments!

 

To use xRDP for a Windows Remote Desktop connection to Manjaro Linux, you need to install and configure xRDP on your Manjaro system. Here are the steps you need to follow:

  1. Enable AUR support: Manjaro Linux does not support xRDP out of the box. You need to enable AUR (Arch User Repository) support to install xRDP. You can do this by selecting "Add or Remove Software" → Preferences → AUR → Enable AUR support[2].

  2. Install xrdp & xorgxrdp-git: Install the latest packages of xrdp and xorgxrdp-git from the AUR[2].

  3. Configure xrdp: Enable the xrdp service and xrdp-sesman service using the following commands:

sudo systemctl enable xrdp.service
sudo systemctl enable xrdp-sesman.service

Then, allow any user to start an X session by adding "allowed_users=anybody" to the /etc/X11/Xwrapper.config file:

sudo echo “allowed_users=anybody” >> /etc/X11/Xwrapper.config

Next, edit the ~/.xinitrc file. Comment the line #exec $(get_session "$1") and add the following line to the end of the file:

exec dbus-launch --sh-syntax startplasma-x11

This command starts the KDE Plasma desktop. If you're using a different desktop environment, you'll need to modify this command accordingly[2].

  1. Reboot & connect from Windows RDP client: After making these changes, reboot your Manjaro system. You can then connect to it from your Windows system using the Remote Desktop client[2].

Please note that xRDP does not currently support Network Level Authentication (NLA). If your local RDP client uses NLA, you may need to disable that connection setting[1]. If you encounter any issues, you can troubleshoot by using the netstat command on your Linux VM to verify that your VM is listening for RDP connections[1].

Citations: [1] https://learn.microsoft.com/en-us/azure/virtual-machines/linux/use-remote-desktop [2] https://rajasekaranp.medium.com/how-to-setup-xrdp-in-manjaro-linux-e176b22bd347 [3] https://forum.manjaro.org/t/using-remote-desktop-connection-to-connect-manjaro-installed-with-xrdp-faile-because-of-error-connecting-to-user-session/124437 [4] https://www.digitalocean.com/community/tutorials/how-to-enable-remote-desktop-protocol-using-xrdp-on-ubuntu-22-04 [5] https://www.adamlabay.net/2022/04/15/xrdp-on-manjaro-the-easy-way-when-it-works/ [6] https://bbs.archlinux.org/viewtopic.php?id=248471 [7] https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-18-04/ [8] https://www.reddit.com/r/ManjaroLinux/comments/s99lay/cant_install_xrdp/ [9] https://forum.manjaro.org/t/xrdp-and-xfce-authentication-windows/90416 [10] https://askubuntu.com/questions/234856/unable-to-do-remote-desktop-using-xrdp [11] https://forum.manjaro.org/t/install-xrdp-server-in-kde-but-it-doesnt-work/116475 [12] https://forum.manjaro.org/t/xrdp-fails-to-connect/134154 [13] https://linuxkamarada.com/en/2020/04/29/remote-desktop-connection-to-linux-from-windows-using-the-xrdp-server/ [14] https://www.adamlabay.net/2021/08/28/xrdp-on-manjaro-fixing-the-blank-screen-issue/ [15] https://forum.manjaro.org/t/rdp-or-vnc-from-windows-to-my-manjaro/65190 [16] https://www.ed.ac.uk/files/atoms/files/connecting_to_xrdp_from_windows_0.pdf [17] https://forum.manjaro.org/t/xrdp-installation-fails/145631 [18] https://github.com/neutrinolabs/xrdp/issues/1456 [19] https://phoenixnap.com/kb/debian-remote-desktop [20] https://forum.manjaro.org/t/how-to-configure-xrdp-xfreerdp/15110 [21] https://youtube.com/watch?v=1CLqxI7UTas [22] https://forum.manjaro.org/t/xrdp-server-on-manjaro/47433

 
 

To swap the Caps Lock and Escape keys on Windows, there are several methods available. Here are some of them:

  1. Using PowerToys:
  • Download and install PowerToys from the Microsoft Github page.
  • Open PowerToys and browse to the Keyboard Manager.
  • Enable the Keyboard Manager and click Remap a key.
  • Choose Caps Lock -> Escape.
  1. Using PowerShell:
  • Open Windows PowerShell (Admin) by pressing Win + X.
  • Enter these commands:
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);
  • Save and reboot.
  1. Using AutoHotkey:
  • Download and install AutoHotkey.
  • Create a new script and add the following lines:
Capslock::Esc
Esc::Capslock
  • Save the script and run it.
  1. Using Uncap:
  • Download and run Uncap, an open-source tool that maps Caps Lock to Escape or any key to any key without setup or configuration files.

Note that some of these methods may require administrator privileges or the installation of third-party software.

 

On Manjaro Linux Cinnamon, I use the following settings configured via dconf:

dconf write /org/cinnamon/settings-daemon/peripherals/keyboard/delay "uint32 150"
dconf write /org/cinnamon/settings-daemon/peripherals/keyboard/repeat-interval "uint32 10" 

dconf write /org/cinnamon/settings-daemon/peripherals/mouse/motion-acceleration 6.0
dconf write /org/cinnamon/settings-daemon/peripherals/mouse/motion-threshold 2.0

Keyboard delay of 150 ms, repeat interval of 10 ms, mouse acceleration of 6.0, and motion threshold of 2.0.

How can I achieve similar settings on Windows 11?

Looking at the registry Computer\HKEY_CURRENT_USER\Control Panel\Keyboard I see that :

  • KeyboardDelay is set to 1.
  • KeyboardSpeed is set to 31.

I don't feel any changes when changing those values, I don't know if I should restart for them to apply.

For mouse I search for "pointer" in the Start menu and click on Change the mouse pointer display or speed but I can only change the speed. I don't see a setting to change acceleration. What is Enhance pointer precision?

How can I achieve similar settings on Windows 11? Any help would be appreciated!

 

I was surprised to see Signal above WhatsApp. It must be because this program is used more by techies. I've also learned about a few other chat programs like Rocket.Chat, I hadn't heard that one before.

 

I want to share a screenshot for the search "chat" in Chocolatey package manager but I haven't found any relevant community for it.

view more: ‹ prev next ›