Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

vorticalbox

Member
  • Content Count

    6,225
  • Joined

  • Last visited

Awards

About vorticalbox

  • Title
    A box of vorticals
  • Birthday Feb 02, 1989

Contact Methods

  • Steam
    vorticalbox
  • Xbox Live
    vorticalbox
  • Twitch.tv
    vorticalbox
  • Twitter
    @vorticalbox
  • Website URL

Profile Information

  • Location
    Scotland
  • Gender
    Male
  • Interests
    Programming, Photography, Gaming, Music
  • Biography
    Software engineer at https://www.financial-cloud.com/#!/

    Node, docker and serverless.

    I run containers in production!
  • Occupation
    Software engineer

System

  • CPU
    Intel i7-10750H (12) @ 5.000GHz
  • RAM
    64 GB
  • GPU
    NVIDIA GeForce RTX 2060
  • Case
    laptop
  • Storage
    2 TB SSD
  • Display(s)
    17" 144 hz
  • Operating System
    ubuntu 20.04

Recent Profile Visitors

12,042 profile views
  1. normally you would save these in a .env file then load them into your environment before starting your application. for node i use env-cmd, for python i use python-dotenv. You didn't say what language you are using but this is a common pattern and there should be some module to help you out https://www.npmjs.com/package/env-cmd https://pypi.org/project/python-dotenv/
  2. And if its a relitive href you need to add the domain back on.
  3. Tbf this sounds like it would be better put in a database of some sort, it'll be far faster then looping over everything to see if an item is in an array.
  4. My work laptop for the longest time had 16GB of RAM and this was fine until i started running mongoDB replica sets (it will eat as much RAM as it can take), so 16GB is probably fine, that said i have 64GB now and i wouldn't go back
  5. what are you finding limited about it? and why do you you think remaking in something else will over come these limitations?
  6. my path went PHP, c#, python and finally node (for work). I have a soft spot for python but i really do like node. streams and async are super powerful. the main question is what are you want to develop as programming languages are like tools, you use the best on for the job.
  7. personally what i do is just stick ubuntu LTS on it and then install pop shell to window tiling. If you really dislike gnome then you can just install another and switch to it in before you login
  8. in-these situations, where you are writing lots of ifs i like to refactor into something like this from random import randint answers = [ 'well yes, but actually no', 'Nah, you bitch', 'not sure. Still a bitch tho.' ] random_number = randint(0,len(answers)-1) answer = answers[random_number] print(answer) I find it much easier to follow and allows you to add more answers by simply appending to an array, also will let you load then answers from a text file
  9. Ubuntu minimum install is exact as described, other than Firefox it comes with nothing install not even curl.
  10. wheni want to serve a folder i just use docker docker run --rm -it -p 80:80 -p 443:443 -v "${PWD}:/srv/data" rflathers/nginxserve I actually have this as alias in my .zshrc alias nginxhere='docker run --rm -it -p 80:80 -p 443:443 -v "${PWD}:/srv/data" rflathers/nginxserve' we get https though the browser wont trust the cert
×