Category Archives: General stuffs

Anything that’s considered “general” by me hehe…

Must read

This is a very in-depth guide on what hashtables can be used in powershell, must read. I have some situations which I am considering hashtables such as storing the source, destination and service to one row of firewall rule, and … Continue reading

Posted in General stuffs | Leave a comment

[Tufin]How to send access request using REST API

The structure of the XML is not properly explained in SWAGGER, swagger is a build in helper to browse the API calls within Tufin SecureChange itself. The example presented under Post Ticket is not very practical, the entire form is … Continue reading

Posted in General stuffs | Tagged , , | Leave a comment

[c]Question and Exercise (Tossing chance)

The requirement is to ask user to input head or tail in the program and display the number of heads and tails and the probability in percentage. output will be like this: Choose head or tail (valid choices is h … Continue reading

Posted in General stuffs | 1 Comment

[c]Questions and exercises

Question 1 A 2 minute telephone call to Lexington, Virginia costs $1.15. Each additional minute costs $0.50. Write a program that takes the total length of a call in minutes as input and calculates and displays the cost. The sample … Continue reading

Posted in General stuffs | Leave a comment

[c]Decimal to binary

Posted in General stuffs | Leave a comment

[c]Extension of previous triangle pattern with numbers

Get a mirror image of the pattern on previous post. This exercise is the same as previous, just print the columns.. here’s the code: Looks like this when user enter 5: Enter the rows:5 1 12 123 1234 12345 1234 … Continue reading

Posted in General stuffs | Leave a comment

[c]Nested for loop exercise.

This is a good lesson which trains my logic… See the lessons here: https://codeforwin.org/2015/07/right-triangle-star-pattern-program-in-c.html See sample codes: Here is how it looks like when user enters 5: 1 12 123 1234 12345 Algorithm: 1. When row is 1, column is … Continue reading

Posted in General stuffs | Leave a comment