r3d_f0x
  • Glossary
  • Info
r3d_f0x
  • Glossary
  • Info
  • Home
  • Programming

Posts in category Programming

Digital Ocean now has separation for different projects

November 6, 2018 Leave a Comment Written by r3d_f0x

The VM hosting service Digital Ocean started offering separation for hosting resources into different projects.  This is a feature I wanted to see for a long time because I host many different servers for different purposes and different people.  Digital Ocean has gone a step above just separating cloud servers and they allow projects to have all of their self contained resources.  This makes it much easier to manage servers, domain names using Digital Ocean’s name servers, firewalls and any other components needed for a project.  Before this feature all hosting resources were combined together and it could be hard to keep track of resources for different projects when you had multiple projects you manage and you host projects for other people.

When Digital Ocean added this feature I created multiple projects for each of things I’m doing on Digital Ocean including the various projects that I’m hosting for other people.  This is a very exciting feature that I’ve been waiting for since I started using the service several years ago.  They’ve done a good job adding features since then but this is one of the best that I’ve seen so far.  The other best feature they added recently was doubling the server resources and now their minimum $5 plan includes 1GB of memory making it useful for any non-intensive hosting project.

This is not a paid promotion.  This is my thought.

Internet Culture, Programming, Technology

Use multiple if statements without else if even else

January 7, 2018 Leave a Comment Written by r3d_f0x

It’s possible to use multiple if statements in a row without chaining them with else if statements or a concluding else statement as the default condition.  When you have multiple if conditions without any other control flow, multiple code blocks can be triggered by different conditions.  In a normal if, else if, and else control flow, only one action will be triggered by the first condition that is satisfied.  This is the most common control flow for simple programs and programming is taught this way because a chain of if blocks can result in multiple condition triggers.  Sometimes multiple condition triggers are desirable and this is when you can use multiple if conditions.  Since you aren’t limited to keeping the control flow unbroken with only if statements, you can add additional code between the statements, but for readability you should only do this if you need to.

Programming, Technology

Links

  • Wiki
  • Forum
  • Gitlab
  • Chat - discord.me/r3df0x
  • Recent Posts

    • This is why conservatives keep ending up with the alt-right
    • Digital Ocean now has separation for different projects
    • Anti SJWs are NPCs
    • I can’t stand Tim Pool anymore
    • When conservatives talk about communists

    Recent Comments

      Archives

      • January 2019
      • November 2018
      • October 2018
      • September 2018
      • August 2018
      • June 2018
      • April 2018
      • March 2018
      • January 2018
      • December 2017
      • July 2017
      • May 2017

      Categories

      • Alternative Liberals
      • Centerism
      • Conservatives
      • Culture
      • Discourse
      • Discussion software
      • Fascism
      • Feminism
      • Gaming
      • Gender
      • Guns
      • Internet Culture
      • Neckbeards
      • Online comments
      • Politics
      • Programming
      • Psychology
      • Racism
      • Religion
      • Russia
      • Satire
      • Security
      • Slavs
      • Social Justice Warriors
      • Technology
      • Vulnerabilities
      • Web encryption
      • Youtube Gun Community

      Meta

      • Log in
      • Entries RSS
      • Comments RSS
      • WordPress.org

      evolve theme by Theme4Press  •  Powered by WordPress