Tags » Code Snippet

Exploring the logs

As a developers an important part of our job sometimes is to fix problems in the different environments where our applications are deployed. Usually, this means to deal with huge log files to find where errors occur, and their stacktraces to add some context to the problem. 161 more words

Code-snippet

Simplifiying SSH

Nowadays we are use to deploy code in the cloud and to have all our machines and servers in cloud environments. All of this, it has even made more important the use of ssh to connect remotely to our servers allocated in the cloud. 166 more words

Code-snippet

Debugging JVM flags

Just a couple of interesting flags when we are executing/debugging a Java web based application.

First one, it is just to change the logging level without modifiying our properties file: 56 more words

Code-snippet

Cryptic Reg Key

Okay, so as my first blog post I have chosen to add some code that I’ve been working on recently.  Somewhere on the internet I happened upon a blog somewhere (sorry I can’t remember where I read it)  This blog was talking about the way Microsoft Registration Keys worked (old Style). 237 more words

Code

C++ Application #5 – Meet & Greet

// Takes users input, and greets them by outputting their input with some flavor text
// Created by Adrian Miasik
// Date: 2017/05/13

#include <iostream>
#include <string>

int main() 
{
	// Prompt user for their name
	std::cout << "Please enter your name:" << std::endl;

	// Declare a place to store user's input
	std::string name;

	// Store user's input
	std::cin >> name;
	
	// Greet them using the stored string
	std::cout << "Hello there " << name << "! 17 more words
C++

C++ Application #4 – Hello, World! Newline Repeating...

// Hello World Newline Repeating Program - Prints "Hello, World!" but a newline occurs everywhere that whitespace is allowed to happen (once of course)
// Created by Adrian Miasik
// Date: 2017/05/13

#include <iostream>

int main()
{
	std::cout << "H" << std::endl << "e" << std::endl << "l" << std::endl << "l" << std::endl << "o" << std::endl << "," << std::endl << " " << std::endl << "W" << std::endl << "o" << std::endl << "r" << std::endl << "l" << std::endl << "d" << std::endl << "!" << std::endl;
    // std::cin.get(); // Prevents the console from closing 
	return 0;
}
C++

C++ Application #3 – Shortest Valid Program

Shortest Valid Program (within C++)
Created by Adrian Miasik
Date: 2017/05/13

int main(){}
C++