Jump to content

vlads_

Member
  • Posts

    46
  • Joined

  • Last visited

Reputation Activity

  1. Like
    vlads_ reacted to A51UK in do you guys think big tech is losing sleep over blockchain?   
    People misunderstand what is Blockchain is, just a log system / audit trail, distributed ledger. Not really a big deal and is not that useful out side of log system / audit trail.  Thing it not: Database, programming language, data storage, server. 
     
     Most website / app,  blockchain is not very useful as other log system work better. 
  2. Like
    vlads_ got a reaction from Joe Jackman in Um what???   
    Try
    sudo nautilus / from the command line
  3. Like
    vlads_ got a reaction from Joe Jackman in Um what???   
    A normal Linux installation has a root account (similar to the administrator in Windows) and a number of user accounts. In modern Linux system you can act as root (equivalent to "Run as Administrator..." in Windows) via the sudo command. In this case 
    sudo <File Manager Program> you can also chown to your unprivileged user account, but I wouldn't recommend it, as it can cause problems.
     
    Your file manager program may have a way to become root without you having to open the command line (or it may not).
     
    Unfortunately, as I don't use PopOS, I can't tell you if it does or what the File Manager Program is called for you to be able to use it like I showed you. Hopefully someone who does can help.
  4. Like
    vlads_ reacted to Slottr in Add a proxy Server to an Lan Port in Android (Huawei Phone)?   
    -Locked-
     
    If you want help, stop acting like a child.
  5. Agree
    vlads_ reacted to Eigenvektor in Starting Minecraft Server on Startup   
    I'd recommend setting it up as a service using systemd:
    - https://minecraft.gamepedia.com/Tutorials/Server_startup_script
    - https://teilgedanken.de/Blog/post/setting-up-a-minecraft-server-using-systemd/
     
    Then you can configure it to start as soon as the server is started and you don't have to sign in to run it manually
     
     
  6. Agree
    vlads_ got a reaction from Sauron in How do I compile Linux from sources to make a command line?   
    Arch or Tiny Core Linux sound like what you want. Getting a minimal distribution off the ground yourself is annoying and time consuming, but if you want to go with that Linux from Scratch is what you want.
  7. Agree
    vlads_ reacted to vorticalbox in Rename each file in a folder using an external file   
    you need to move the 
    i = 0 to above the loop as you're resetting it to 0 every loop
    i = 0 for filename in os.listdir(directory): print(filename) os.rename(directory + filename, directory + names[i] + '.pdf') i += 1  
  8. Like
    vlads_ got a reaction from shadow_ray in Multilingual support? Waking a diaphragm sleep/rest/reset node.   
    Back in the olden days, we used bytes to signify characters (one byte = one character). That means we have 256 characters to work with. Because there exist much more than 256 characters in the world we want to represent, we used different code maps: tables which specify what each byte "means". Generally, the first 128 bytes were the same for all maps, ASCII, but some code maps do not follow this.
     
    Then, Unicode happened. It initially used 16-bit code points, to represent 65 thousand characters. When those weren't enough, they grew to 24 bits.
     
    There are a few ways to represent Unicode: UTF-8 (a very nice encoding created by God, I mean, by ken, which is backwards compatible with ASCII, and has some nice properties), UTF-16 (a hacked together encoding. Used as the native encoding of Windows, for some reason), and UTF-32 (which is mainly used internally by programs in certain places).
     
    Going back to your questions:
     
    You don't. You don't use character maps at all. They are obsolete.
    There are no obsolete Unicode symbols. If you want to convert from the old character maps to Unicode there are tools such as iconv, or you can write them yourself (an UTF-8 encoder is like 20 lines of code).
    But any correct Unicode file ever written is still valid today.
     
    If your font does not support a character range, get a font which does (this is probably what your optional updates are doing, but idk). If your program does not use a rendering library which supports modern Unicode features (like right to left) you have to wait for it to get updated.
  9. Informative
    vlads_ got a reaction from kelvinhall05 in Free video editing for extremely basic stuff   
    You can use ffmpeg from the command line to cut and stitch together videos, static images, etc. I think overlays also. Not sure about transitions.
  10. Agree
    vlads_ got a reaction from vorticalbox in Need help for Discord bot   
    Oh that makes more sense. Here's a small discord bot in Go to do that. Note that I don't know how terraria servers work so the exec.Commands are just a placeholder
     
    package main import ( "flag" "log" "os/exec" dg "github.com/bwmarrin/discordgo" ) func main() { t := flag.String("t", "", "token") flag.Parse() s, _ := dg.New("Bot " + *t) err := s.Open() if err != nil { log.Fatal(err) } s.AddHandler(func(s *dg.Session, m *dg.MessageCreate) { if m.Content == "-start" { starter := exec.Command("terraria-server", "start", "aditional", "args") if starter.Run() != nil { s.ChannelMessageSend(m.ChannelID, "Could not start server!") } else { s.ChannelMessageSend(m.ChannelID, "Started server!") } } if m.Content == "-stop" { stopper := exec.Command("terraria-server", "stop", "aditional", "args") if stopper.Run() != nil { s.ChannelMessageSend(m.ChannelID, "Could not stop server!") } else { s.ChannelMessageSend(m.ChannelID, "Stopped server!") } } }) // do not exit c := make(chan struct{}) <-c } To use this copy the code into a file "main.go" in a directory "mybot". Run "go mod init mybot" and "go build" and you should get a "mybot" executable. Run the executable as "./mybot -t <token>" replacing token with your bot token. Before building, you should replace "-start" and "-stop" with the commands you want people to say in Discord and what is in the exec.Commands with the commands you use to start the server. So if you run the server as
    terraria-server start -foo "a b c" you would write it as
    exec.Command("terraria-server", "start", "-foo", "a b c") Same with stopping it.
     
    Edit: I'm assuming terraria-server daemonizes itself. If not the code would look a bit different.
  11. Informative
    vlads_ reacted to colonel_mortis in Hiding an image URL...   
    A simple solution would be to have another PHP file on your server that proxies the image. That script would look something like
    <?php $webcamImageUrl = "http://111.111.111.111/snapshot.jpeg"; $curlRequest = curl_init(); curl_setopt($curlRequest, CURLOPT_URL, $webcamImageUrl); curl_setopt($curlRequest, CURLOPT_HEADER, false); // Don't include the response headers in the result curl_setopt($curlRequest, CURLOPT_RETURNTRANSFER, true); // Return the body of the requested resource curl_setopt($curlRequest, CURLOPT_TIMEOUT, 10); // Timeout if it takes > 10s $imageData = curl_exec($curlRequest); if (curl_error($curlRequest)) { http_response_code(500); echo "Error: " . curl_error($curlRequest); exit; } header("Content-Type: " . curl_getinfo($curlRequest, CURLINFO_CONTENT_TYPE)); echo $imageData; That could be improved by caching the image on disk so it doesn't get requested too often.
     
    PHP isn't the ideal language for this because it has to load the whole image into memory before it can send it back to the user, but it should be good enough for your use case.
  12. Funny
    vlads_ got a reaction from Gappy in Is there even a good OS in this universe?   
    relevant cat-v page
     
    http://harmful.cat-v.org/software/operating-systems/os-suck
  13. Informative
    vlads_ got a reaction from Mamonos in Hiding an image URL...   
    I see. Well what you're trying to do depends a lot on the tech stack on the server as that's where you're going to have to do it: a client will have to know the IP of your router in order to fetch the image for itself.
     
    If you're running PHP, for example, it might be most reasonable to have a script to fetch the image and serve it (http(s)://yoursite.com/router_data.php?path=snapshot.jpeg), but I have no idea how to write that, since I don't do PHP.
  14. Informative
    vlads_ got a reaction from Mamonos in Hiding an image URL...   
    You can mount FTP as a local file system using FUSE, if your server is running Linux https://wiki.archlinux.org/index.php/CurlFtpFS . So you can mount 111.111.111.111 in say, /var/www/public_html/router (or whatever cute name you want) and access it via http(s)://yoursite.com/router/snapshot.jpeg .
     
    If you're not running Linux or you don't have direct access to the host machine things get more complicated.
  15. Funny
    vlads_ got a reaction from Sauron in Is there even a good OS in this universe?   
    relevant cat-v page
     
    http://harmful.cat-v.org/software/operating-systems/os-suck
  16. Funny
    vlads_ got a reaction from wall03 in Is there even a good OS in this universe?   
    relevant cat-v page
     
    http://harmful.cat-v.org/software/operating-systems/os-suck
  17. Agree
    vlads_ got a reaction from LAwLz in Microsoft confirms Windows 10X is coming to laptops amid big jump in Windows usage   
    On Windows 10X Win32 programs are sandboxed, which makes them feel like second class citizens, at least on paper. Don't know how it is in practice, as I've never used a 10X machine; and hopefully I never will.
     
    I don't understand which is supposed to be js and which is supposed to be c/c++ in this analogy.
  18. Agree
    vlads_ reacted to Tarry Hesticle in Windows replacement for my non-techy mother on a netbook   
    Yeah Lubuntu would work great for that. You could try Linux Lite, just cause it's XFCE skin is modeled more after windows.  For remote desktop you could try messing around with VNC, but that could be a bit of a pain.
  19. Agree
    vlads_ reacted to Tristerin in Is it a shame to own a low end PC?   
    This thread is weird to me.  Quit thinking about social acceptance on your PC.  Love you, love your PC and that's good enough.
     
    Also me - I don't have the top end system either, and never will.  Its not feasible, for me and my goals.
×