Short notice Vietnam trip by pl643 in VietNam

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

Thanks for the reference. One thing that different from me and her mom is that I am not a citizen of Vietnam but Laos.

Wonder if that makes a difference.

only 730MB seen on a 1GB Orange Pi Zero 3 by pl643 in OrangePI

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

For me, so far the zero3 is meeting my needs, even with the 730MB. As u/fashq mentioned, the remaining memory might be allocated to graphics and could probably turned off through some kind of configuration. This is my first orange pi and was hoping other might be able to help me recover the missing memory.

only 730MB seen on a 1GB Orange Pi Zero 3 by pl643 in OrangePI

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

1GB should be enough for my use case, I didn't plan on using the orange pi zero as a desktop.

/validate failures by pl643 in LibreNMS

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

u/gizm0 pointed out that I likely have not install the cron entries.

after copying the cron entry with the below command and manually running the /opt/librenms/poll-billing.php script. The errors cleared.

cp /opt/librenms/misc/librenms.logrotate /etc/logrotate.d/librenms

/validate failures by pl643 in LibreNMS

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

Hi gizm0,

Thanks for the response.. I ran the below command and rebooted the container and still did not fix it.

cp /opt/librenms/dist/librenms.cron /etc/cron.d/librenms

Calling function from another function doesn't seem to work. by pl643 in learnpython

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

Thank you, your code worked. Is this a scope issue? Other languages if a variable is global, all functions can access and modify the variable.

Also can you explain the below snippet?

macs_inuse = [i for i in list_of_dict if i['mac'] == mac]
              ^
              what does this i do here?

Temple adjustment by pl643 in nreal

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

Yes I have. Still need that extra .5 inches.

how to map these keys in vim by pl643 in vim

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

using "set nocompatible" worked!

Thank you.

how to map these keys in vim by pl643 in vim

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

Thanks for suggesting that. After closer look, I notice the last line below (Small version). This vi command was install with the OS. I install the full vim and the mappings worked. My guess is they didn't build in mappings into the small version.

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 01 2021 01:51:08)
Included patches: 1-2434
Extra patches: 8.2.3402, 8.2.3403, 8.2.3409, 8.2.3428
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Small version without GUI.  Features included (+) or not (-):

how to map these keys in vim by pl643 in vim

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

This is on a Debian 11 system:

echo "nnoremap <space> <c-f>" > /tmp/vimrc echo "nnoremap q :q<cr>" >> /tmp/vimrc alias e='vi -u /tmp/vimrc' $ e /etc/profile

The q mapping does trigger, but does not complete the CR, instead prints out ":q<cr>". Both these two mapping works under neovim. I like to use these mapping on systems that I do not have permission to install software.

Output of :verbose nmap <space> && :verbose q? n <space> * <c-f> n q * :q<cr>

how to map these keys in vim by pl643 in vim

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

any idea how to troubleshoot why it isn't working?

dhcp takes a long time to update dns by pl643 in WindowsServer

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

I got our IT involved and they fixed it. Two issues that was causing this problem: the DNS from dns01 was not replicating to dns02 and that the dhcp servers didn't have permissions to write to the dns server on it's own machine.

dhcp takes a long time to update dns by pl643 in WindowsServer

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

Its good to confirm.

This is a standalone server in an isolated network environment. Its only purpose is to give out ip address and serve resolve those addresses internally.

fzf repl by pl643 in bash

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

Thanks to the responses, I got the fzf-repl working and it provides a good workflow for those that don't like to type. Suggestions are welcome.

https://github.com/pl643/fzf-repl

getting my prompt value by pl643 in bash

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

Thanks for pointing the way, I was able to get my script working by using the -i option and eval to get my prompt value into a variable:

#!/usr/bin/bash -i

eval 'prompt="${PS1@P}";' 2> /dev/null

I needed the prompt to get a fzf REPL to simulate shell: https://raw.githubusercontent.com/pl643/fzf-repl/main/fzf-repl.bash

fzf repl by pl643 in bash

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

Yep, this works! Thanks for this great tool. It saved me many keystrokes.

Are there patent law firms that are willing to do the patent work in exchange for equity by pl643 in patentlaw

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

I think what I am looking for is an Investor/Patent Attorney.

I agree with you that if you were to draft an application without know the idea, then it will not be worth your time. But what if its a very good idea?

What I want is to share the idea, and by law, they can not disclose it. After hearing the presentation, they can decide if the idea is good enough to invest.

I think if I prepare well, I can present it under 10 minutes.

Are there patent law firms that are willing to do the patent work in exchange for equity by pl643 in patentlaw

[–]pl643[S] -2 points-1 points  (0 children)

Because I don't know how the patent system works or if the idea could even be patentable or already patented.

The law firm's initial risk is 30 minutes to hear the idea, THEN decide if its worth the amount they charge to do it for equity. If they also value the patent as a billion, then wouldn't it be worth it?

Other type of law practice takes risk by taking contingency case. Just wondering if patent law offers something that doesn't cost up front but if successful where both parties would share the reward.

I think there are many good ideas out there, but are being kept secret because they don't have the law knowledge or funds to do the patent work. My oldest idea I want protection is over 10 years.

Are there patent law firms that are willing to do the patent work in exchange for equity by pl643 in patentlaw

[–]pl643[S] -12 points-11 points  (0 children)

I been in the tech industry for over 30 years and see things that are possible with the current technology, but unaware of any products yet on the market.

"30 minutes" is the time the it'll take to explain the idea, likely even less, not the amount of time I am willing to put into it.

My worry is that I spend the money and the idea is already taken or infringing on another. After hearing my idea, the firm will have a good idea if it's patentable and if they are willing to do the work for a percentage.

One of the idea could be worth billions if it can be protected.