LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > Skaperen
User Name
Password

Notices


  1. Old Comment

    Base 57

    Now I get it. Paper backup of data that one can later type in with less likelihood of error, with an expansion ratio nearly as good as the usual 3:4 of base 64.
    Posted 05-01-2021 at 10:52 PM by jr_bob_dobbs jr_bob_dobbs is offline
  2. Old Comment

    new commands that create needed directories

    i have decided that these commands are a bad idea. the do work. but minor mistakes in usage can lead to many problems. they can be used in scripts OK, but so can mkdir. the big problem is mistyping the directory name. it will do as you say, not as you want. the mistyped name is likely to not exist. but it will be created, anyway, and your moved object will disappear from you, only to show up when you discover the directory with the funny name.

    it is nice to be able to test if the directory is actually there. but mv can already do that with the -t option in front of the directory name.
    Posted 04-20-2021 at 09:17 PM by Skaperen Skaperen is offline
    Updated 04-20-2021 at 09:19 PM by Skaperen
  3. Old Comment

    Base 57

    i want to use a smaller set of characters with no special characters. around this scale it seems everyone jumps to base 64 when base 57 works fine and avoids the special characters. which base do you think is best, and why?
    Posted 03-21-2021 at 02:07 PM by Skaperen Skaperen is offline
  4. Old Comment

    Base 57

    Annnnd? ...

    I'm unclear where you're going with this.
    Posted 03-17-2021 at 08:13 AM by jr_bob_dobbs jr_bob_dobbs is offline
  5. Old Comment

    A feature i would like to add to head and tail

    another way to do this is to improve the -n option instead of adding the -m option. the -n option usually has a number. i would have -n support the @ character followed by the regex (and the ! character followed by a fixed string) and let that do the search.
    Posted 03-11-2021 at 05:13 PM by Skaperen Skaperen is offline
  6. Old Comment

    A feature i have never liked

    the move/rename separation seems like a reasonable approach. i like that naming concept.

    one thing that has always bothered me is that many commands force you to have existing directories for new file paths, instead of creating parent directories as needed. Python does have a function named "renames" (in the "os" module) that creates directories as needed for where a file is going to. it also removes directories that are no longer needed (now empty) from where a file is taken from. not all file system actions are covered by this.

    as for being in C, i don't see a need. i code in both C and Python and see the latter as quite capable in most cases, if not all. the only place i see a need for C is where the Python interpreter can't be, such as small embedded systems and early stage boot straps. i'd be doing even more in Python if it had more kernel syscall interfaces (the stubs get implemented in C).
    Posted 03-11-2021 at 02:06 PM by Skaperen Skaperen is offline
  7. Old Comment

    A feature i have never liked

    I totally understand where you're coming from.

    I've always wanted mv to be separated into two commands: move (to move file or a directory someplace) and rename (to rename file in-place). Having them both in the same command has always made me (in a conceptual sense) trip and stumble when doing file management. You can actually use mv (as it is now) to (accidently or not) delete things! D'oh!

    That said, important low-level system commands should be in .c.
    Posted 03-11-2021 at 07:11 AM by jr_bob_dobbs jr_bob_dobbs is offline
  8. Old Comment

    Unvirtualize Linux

    that is the concept. see, someone else already thought of it. now i need to dig into it to see how much alike or different mine would be if i implemented this (no point in doing it, now). on a LAN, no point in having a VPN. but some kind of very secure high performance tunnel would be needed to extend this over unsafe networks. my goal would be to hide the fact that it is a cluster to trivial command usage, shell scripts, and programs. maybe you'd see the "number of cores" grow over time from 320 to 360 as it scales up in the cloud.
    Posted 03-10-2021 at 08:54 PM by Skaperen Skaperen is offline
  9. Old Comment

    Unvirtualize Linux

    So, you're talking about a bunch of Beowulf clusters inter-connected via VPN?
    Posted 11-02-2020 at 10:19 PM by rkelsen rkelsen is offline
  10. Old Comment

    How I would like to use a desktop switcher

    With today's tools I am getting the kind of switching I have wanted. Today I am using Xubuntu. That's Ubuntu modified to use the Xfce Desktop Environment.

    Xubuntu includes a keyboard shortcut feature that allows programming a keyboard key stroke or key chord stroke to execute a specific command. I use this in conjunction with other features to achieve what I want to do and more.

    "lightDM" is a Display Manager that runs in Xubuntu. since it is a different project than Xfce, I believe that the base Ubuntu also runs it. LightDM allows running multiple instances of the Xorg X server, one for each user logged into the console. It runs the login greeter that asks for your password to login after you select a user from the menu.

    I also use a feature where LightDM lets me quickly jump between users. There is a special supplemental group called "nopasswdlogin" that LightDM uses. Users that are in this group have the password prompt skipped at the console by LightDM. So, when I jump to a different user it goes directly to that user without asking for a password. It also means that user can be logged in to by anyone with access to the console. So, don't use this feature unless you (or everyone you trust) are the only one with access to the console.

    Lightdm includes a command called "dm-tool" to tell it to switch to a different user. read the man page for it to learn how to use it. i use it in those keyboard shortcut keys. for example, I have Alt+S programmed to execute "dm-tool switch-to-user skaperen".

    Xfce also lets each user have workspaces. these can be switched with the "wmctrl" command. I have workspace switching programmed on keyboard shortcuts, also.

    I now have 15 users logged in (of about 40 defined, used as a layer of compartmentalizing different things I do on my laptop) and each user has 10 workspaces. This gives me enough space and lets me switch fast enough that I use full screen or nearly full screen windows and apps in each workspace. When I watch YouTube videos, I can always watch them in full screen mode (nice for HD) and still switch around easily, while leaving them in full screen mode.
    Posted 12-01-2019 at 08:01 PM by Skaperen Skaperen is offline
  11. Old Comment

    Newegg Boycott Back On

    Let us rechristen "Newegg" as ROTTENegg until they retract this clearly Micro$atanic inspired policy!
    Posted 05-14-2013 at 02:36 PM by tvespasian tvespasian is offline
  12. Old Comment

    How I would like to enhance iptables

    Netfilter modules like recent and hashlimit provide you with a /proc interface to manage the sets of IP addresses you load into these buckets but in terms of versatility and management they are crude compared to what ipset (http://ipset.netfilter.org) offers.
    *As far as I'm concerned the whole root vs unprivileged is a non-issue (Sudo).
    Posted 12-07-2012 at 09:41 AM by unSpawn unSpawn is offline
  13. Old Comment

    FOSS projects should not use mailing lists for help

    +100^google. i can add no more.
    Posted 09-04-2012 at 10:05 AM by Web31337 Web31337 is offline
  14. Old Comment

    Browsers still re-fetch pages when using back button

    I have not tried Chrome or Safari, either. But Firefox, Konqueror, and that one from Redmond do this.
    Posted 04-11-2012 at 12:36 PM by Skaperen Skaperen is offline
  15. Old Comment

    Browsers still re-fetch pages when using back button

    iirc opera didn't do such things in the past. not sure about newest versions. i guess you're talking about so-called "browser" "firefox" or there are more examples of such ugly code?
    Posted 04-11-2012 at 12:27 PM by Web31337 Web31337 is offline
  16. Old Comment

    Static network config not based on interface name or MAC address

    One of the methods suggested should be fairly simple to deploy. You just need to have a DHCP server on each LAN segment the machines(s) need to do other IP addresses on. A new script to set up the addresses will do DHCP on each interface to get an address from the DHCP server. Since it gets the addresses from the DHCP server it can reach, these addresses will correspond to whatever network the NIC port is connected to. Once the address is obtained, then it can be given back and not even used. It is just sufficient to identify the network that interface and port is connected to. Of course, each LAN's DHCP server will need a separate subnet for it's dynamic allocation pool to make this work right. Or, just make a larger pool and don't worry about giving the addresses back to DHCP.

    The network part of the address obtained from DHCP will identify which network. A table can then map subnets to subnets so you know addition subnets the LAN might have. Then a list of addresses (including from server configs like Apache) can be obtained. For each address, see which interface(s) have the subnet that address is in, and bind that address to that interface.

    Then you can change NICs, change where cables are plugged in, and the kernel can have different probe orders with different interface names, and this will still bind the correct IP addresses to the correct interface.
    Posted 04-09-2012 at 05:41 PM by Skaperen Skaperen is offline
  17. Old Comment

    Static network config not based on interface name or MAC address

    Quote:
    Originally Posted by amilo View Comment
    So you want a netbios network.
    No, I want IP. I just want the system to configure the correct addresses with the correct interface more often than it currently does.
    Posted 04-09-2012 at 07:57 AM by Skaperen Skaperen is offline
  18. Old Comment
    Posted 04-09-2012 at 07:38 AM by amilo amilo is offline
  19. Old Comment

    Could rapid releases be hurting FOSS?

    That might be one of the reasons why enterprise Linux versions like RHEL do not do a major version upgrade in their OS version. Unless the OS major version changes, the major versions for all the packages remain same in their repositories. Those are just the updates and not the upgrades. I have seen this behavior with RHEL and CentOS. I know both are basically same.
    Posted 03-20-2012 at 03:40 AM by linuxlover.chaitanya linuxlover.chaitanya is offline
  20. Old Comment

    Ipv6 readiness

    True.
    Post IPv6 request to LQ bugtracker
    Posted 03-11-2012 at 05:59 AM by Web31337 Web31337 is offline

  



All times are GMT -5. The time now is 10:20 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration