Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 OPERATING SYSTEM


  Capture screenshot of dropdown menu

As a IT professional, we often need to capture screenshot of what we are working on to give proof of what we are doing and why we do it. The screenshot will provide a good sense to other people. You may be familiar with taking screenshot with different tools such as snagit, snipping tool or the Windows PrtSc button. But do you know how to take a screenshot of a dropdown menu?Here we show you how to capture screeenshot of dropdown menu with the snipping tool provided since Windows 7. Below are the steps:1. Open snipping tool and press Esc2. Move to the dropdown menu and expand it3. Then press C...

43,122 0       WIDNOWS SCREENSHOT DROPDOWN MENU CAPTURE


  37 powerful Linux shell commands

To work on Linux platform, you cannot avoid using shell commands to complete some tasks. These tasks can be as simple as list files in some directories or find some text in some file, or can be as complex as monitoring processes. In this post, we will share 37 powerful Linux shell commands. TaskCommands1Delete file with 0 byte(empty file)find . -type f -size 0 -exec rm -rf {} \;find . type f -size 0 -delete2Check process memory consumptionps -e -o "%C : %p : %z : %a"|sort -k5 -nr3Check process CPU utilizetionps -e -o "%C : %p : %z : %a"|sort -nr4Print URLs in cachegrep -r -a jpg /data/cac...

40,148 0       LIST LINUX COMMAND


  A simple way to remove the small arrow on on desktop application shortcut

Maybe many of us will see a small arrow on desktop application shortcut after we install the application on Windows. Some may like it but some people may think it doesn't look beautiful enough. We may need to remove these small arrows somehow the desktop can be clean. So how?Many people may use a third party software to remove the small arrows, then they must go to download the software and install them. But do we necessary do this in order to remove the small arrow?The answer is no.Here I propose a simple way to do this. Follow steps below:1. Go to Start->Run->Type "regedit";2. After th...

39,393 0       SMALL ARROW SHORTCUT DESKTOP APPLICATION WINDOWS


  Create temp file in Bash using mktemp and trap

When working on Linux Bash, sometimes there is need to create temporary file. A common way of creating temp file on Linux is creating some file in /tmp directory. However there is security risk when creating temp file in /tmp directory. This post will show how to securely create temp file in Linux Bash.When creating file in /tmp directory, there are some security risks. This directory can be accessed by any user on the system, any user can write data into this directory as well. The files created in this directory can also be read by other users. pike@DESKTOP-G352RBR:/tmp$ touch /tmp/info...

33,815 2       TEMP FILE MKTEMP TRAP LINUX


  Difference between localhost and 127.0.0.1

Lots of people would think what the address 127.0.0.1 is when first seeing this address. In fact, 127.0.0.1 is a loopback address which refers to the local machine. It is generally used for local testing. When typing ping 127.0.0.1 on local command console, it will send network packets to local IP/TCP layer to test whether IP/TCP works properly or not. To those who are used to use localhost, it is actually mapped to 127.0.0.1 by default. There are hosts files in the system which store this mapping. Hence normally these two can be interchanged.# localhost name resolution is handled within ...

30,275 2       LINUX NETWORK LOCALHOST 127.0.0.1 LOCALHOST VS 127.0.0.1


  Format JSON data on Ubuntu

JSON now becomes a very popular data format because of its simplicity and light-weight. Nowadays many RESTful APIs will offer a choice of exchanging JSON data between the server and client. Sometimes the data may not be formatted and it cannot be easily read by human beings. It's frequently desired that the unformatted JSON data should be formatted before read.Today we will show a few ways to format JSON data on Ubuntu. Assume we have a json file test.json with below content.{ "title": "Test", "description": "Sample description" }The normal cat command will output below content.postman@postman...

27,763 1       UBUNTU LINUX RUBY PYTHON NODEJS PERL JSON JQ YAJL


  Add Sublime Text to your context menu on right click

When opening a text file, you may be used to right click on the file to be opened and then choose the application which can open the file from the context menu. On the context menu, you may see a menu item like "Edit with Notepad++".Nowadays many people especially programmers like to use Sublime Text, but by default this application will not show on the context menu when you right click on a file. There is now frequent request to add this application to the context menu. Here we show a simple batch file which can help you achieve this.Below is the batch code :@echo offSET sublimeTextPath=C:\Pr...

26,187 9       WINDOWS SUBLIME TEXT CONTEXT MENU


  Linux Clock : CST,UTC and NTP setup

1. There is an option when you set up clock on installing Linux: system clock users UTC, so what does UTC mean?It's Universal Time Coordinated(UTC), there are two different times in GPS system: one is UTC , the other one is LT(Local Time). The difference between these two is just the timezone difference, UTC is the time in timezone 0. If the local time in Beijing is 8 o'clock in the morning, then UTC time is 0 o'clock, which is a 8 hour difference.2. In Linux, when we use date to check the time, we may get 17 December,2008 Wednesday 09:04:14 CST. What does CST ,mean here?CST is China Standard ...

21,596 0       LINUX CLOCK UTC