Desk2Mob

Desk2Mob

Desk2Mob

Operating System

How to install gitk in Linux?

sudo yum install gitk

Posted on February 06, 2014 by Amit Pandya
Display only the Directory or file

If you want to display only a list of directories, enter the following command on the console. ls -l | grep '^d' If you want to show just a list of files, type the following command on the console. ls -l | grep -v '^d'

Posted on February 10, 2014 by Amit Pandya
How do I determine if I am running a 32-bit or 64-bit Windows System?

You can do a two-way First way There is a “Computer” icon on the Desktop, right-click on that and select “Properties”, see image below So, the System Properties Dialog will be open, and you can see under the System section, there is a property named “System type” and the value is “64-bit Operating System” (if it is a 32-bit version, operating system “32-bit Operating System”), see image below. Second Way Click on the Start button, see the image below And type system in the Search program and file box, and then click System Information in the Programs list, see image below. So, the System Information dialog will be open, and x64-based PC under value appears for the System type under Item. (If it is a 32-bit version operating system, the x86-based PC under value appears for the System type under Item.), See image below

Posted on April 17, 2014 by Amit Pandya
How to install node.js on Windows 7

Open http://nodejs.org/, then click on Download (http://nodejs.org/download/), so you can view the following details on the screen. Now, based on your Windows 7 system type (meaning whether it is 32-bit or 64-bit), download the appropriate Windows Installer. If you don't know how to determine if you are using 32-bit or 64-bit Windows, please Click Here. Open Command Prompt with administrator privileges; see the following image for more information. Right-click on Command Prompt and select 'Run as administrator'. Now run the following command. msiexec /i node-v0.10.26-x64.msi After hitting the Enter key, you will see the Welcome Setup Wizard screen. Now click on the “Next” button, Click Next to accept the license agreement. Leave the Destination ...

Posted on April 29, 2014 by Amit Pandya
How can I create an executable Ruby file on Ubuntu?

I tried it in Ubuntu 14.04.2 LTS, and it is working fine Step 1: (the purpose of the first line in designating which interpreter to use for the rest of the file), and save the file as a hello-world.rb #!/usr/bin/env ruby puts "Hello World!" Step 2: (make the file executable with the below command) chmod u+x hello-world.rb Step 3: ./hello-world.rb Please note that if your platform doesn't support the `#!/usr/bin/env` convention, then don't forget that the script can be run by passing it to the Ruby interpreter manually: <path_to_ruby_interpreter> -w hello-world.rb

Posted on October 26, 2015 by Amit Pandya
Install Apache on Windows 7

Open Command Prompt with administrator privileges. Please refer to the image below for more details. Right-click on Command Prompt and select Run as administrator. Now run the following command. msiexec /i httpd-2.2.25-win32-x86-no_ssl.msi Now press the Enter key on the keyboard. The installation wizard will appear. Click Next to continue. Accept the license agreement and click Next. Read this first if you wish, and then click Next to continue. Now, you need to enter the server details: Network Domain: desk2mob.dev Server Your Name: www.desk2mob.dev Administrator Email Address: admin@desk2mob.com Keep the installation settings as All Users, on Port 80, as a Service, and it should resemble the image below. Now click the Next button to continue, and the next image will appear. Leave the Setup Type as Typical and click the Next button to continue. Leave the Destination Folder as the default (C:\Program Files (x86...

Posted on August 21, 2025 by Amit Pandya
How to Make a Simple Caffeinate-Style Application for Windows

How to Make a Simple Caffeinate-Style Application for Windows On macOS, the caffeinate command is commonly used to keep the system awake during long-running tasks. Developers use it when running scripts, downloads, uploads, builds, backups, or remote sessions that should not be interrupted by system sleep. Windows does not provide the exact same everyday command in the same simple form, but we can create a lightweight alternative using a batch file and a PowerShell script. Windows has advanced power configuration tools, but this article focuses on a simple script-based approach that is easy to create, run, and stop. The idea is simple: send a harmless key press at a regular interval so Windows does not treat the machine as completely idle. In this example, we use the Scroll Lock key because it usually has very little impact on normal work. Use Case Running a long script Downloading or uploading large files Watching a dashboard Keeping a remote session active ...