Here is a script in PHP I wrote to check if a remote host and port are open for you to connect. Do not mistake this as an equivalent to ping command because ping uses ICMP and I used TCP using PHP’s famous fsockopen() function, and a small piece of AJAX. You can get the latest source code from my GitHub code share page – https://github.com/ninethsense/code-share/ PHP: JavaScript:
-
-
Here is a simple file system watcher for windows. I wrote a script to monitor a folder for a specific purpose, but then thought to make this a generic tool so someone will benefit if I host in GitHub. Find full project at https://github.com/ninethsense/FolderWatcher Source Code:
-
In this Part #2 of blog I will be creating a new .NET Core function in local machine and will upload to AWS using console interface. There are different ways you can develop and deploy but I will be talking in this blog only about the CLI way. I am assuming you know how to create a Lambda function in AWS console already and if not, please read the Part #1 first. Open the Command prompt and follow below steps: Step 1: Install Lambda Templates for .NET Core dotnet new -i Amazon.Lambda.Templates Step 2: Create an empty function dotnet new…
-
This script works on Azure SQL Database also.
-
-
Here is a sample code to upload multiple files using ajax, and without using the traditional <form> tags. Find the full source code in GitHub – https://github.com/ninethsense/code-share/tree/master/jQuery-File-Upload . Sample server code in PHP for the reference:
-
This blog demonstrates how you can JOIN (yes, like in SQL) two xml (datasets) to one using a common ID (relationship). shop.xml price.xml main.xsl Resulting XML, after transformation should look like: Bonus code, if some .net developers want a transformation code:
-
Write a program in a computer language of your choice to convert any given text to “leet format” in real time. Leet (or “1337”), is a system of modified spellings used primarily on the Internet. Input: “Translator” Output:”Tr4nsl4t0r”Input: “leet”, Output: “l33t”Input: “Good Morning”, Output: “G00d M0rn1ng” Evaluation criteria: Code Quality Standards OOAD/Object-Oriented Analysis & Design Application Logic Exception Handling Simplicity and Effectiveness of code Time: 0-30 minutes max.
-
Write a program in a language of your choice to find the critical path from a given set of tasks. A critical path is determined by identifying the longest stretch of dependent activities and measuring the time required to complete them from start to finish. Each circle (A-G) are tasks with specific duration (in Hours). Input: Array of task names and duration given in the diagram. Output 1. Longest path (Critical path) is A+G+B+F+C+D (42Hrs)2. Shortest path is A+B+C+D (26 Hrs)
-
Find the PoserShell script: