How to capture a photo with the remote adapter? You can take a shot by taping the volume-up button of the remote adapter on the earphone. In this way, you can achieve supersteady shots using the earphones as a shutter release.
Tag: Tutorial
How to change the gnome keyring password?
Posted onI want to change the gnome keyring password. How to change it? You can change the keyring password in these steps (on gnome 3): Start seahorse $ seahorse Select “By keyring” in the “View” menu On the left side, right click the “Login keyring” item. You will find the “Change Password” option there. It will
Read more
Squeezing Space in LaTeX – SysTutorials QA
Posted onHow to squeeze space in Latex? A good tutorial about “squeezing space in LaTex” in here from the Cambridge University’s website: http://www.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html These settings work great for me: setlength{textfloatsep}{1pt} setlength{abovecaptionskip}{1pt} setlength{belowcaptionskip}{1pt} A more aggressive configuration to squeeze space in a LaTex doc: % save space usepackage{enumitem} setlist{nolistsep} % no space between refs usepackage{bibspacing} setlength{bibspacing}{baselineskip} usepackage[small,compact]{titlesec}
Read more
Printing Integers in Hexadecimal Format in Python
Posted onPrinting integers in hexadecimal format in Python is a simple task that can be accomplished using the built-in hex() function. By following the steps outlined in this post, you can easily print integers in hexadecimal format in Python. Additionally, by using string formatting, you can control the format of the hexadecimal output to suit your
Read more
How to disable all swaps on Linux
Posted onHow to disable all swaps on Linux to force the application/kernel use the physical memory? To diable all swaps on Linux, run this command as root: # swapoff -a -a means all swaps. Similarly, to enable all swaps on Linux: # swapon -a
Enabling Debugging with CMake for a C++ Project
Posted onWhen developing a C++ project, debugging is an essential part of the process, as it allows you to identify and fix issues in your code. If you’re using CMake to build your project, it’s crucial to know how to enable debug mode to take advantage of debugging tools like gdb. In this post, we’ll walk
Read more
How to get the size of a file in C
Posted onHow to get a file’s size in C? If you have the file stream (FILE * f): fseek(f, 0, SEEK_END); // seek to end of file size = ftell(f); // get current file pointer fseek(f, 0, SEEK_SET); // seek back to beginning of file // proceed with allocating memory and reading the file Or, #include
Read more
Converting String to long Integer in C
Posted onConverting a string to a long in C is a common operation that can be useful in various programming tasks. In this post, we will explore how to use the strtol and strtoul C library functions to convert a string to a long in C. Using strtol and strtoul The strtol and strtoul functions are
Read more
Download the video playing in Chrome.
Posted onHow to download the video playing in Chrome? Download the video playing in Chrome. Checkout the “FVD Video Downloader”: FVD Video Downloader If you are using Firefox, DownloadHelper ( http://www.downloadhelper.net/ ) can handle videos even youtube very well.
Adding Custom Buttons to the WordPress HTML Editor
Posted onAs a WordPress user, you may have noticed that the default HTML editor lacks some of the features that you need for your content. Fortunately, you can add custom buttons to the WordPress HTML editor to make your content creation experience more efficient and productive. In this post, we will explore how to add custom
Read more
Disable WordPress Built-in Canonical URL link tag in HTML head
Posted onThe built-in canonical URL function since WordPress 2.9 is great. But under some situation, it is not needed. For example, all the Mingle Forum threads’ canonical URL is set to the URL of the page that contains the [mingleforum] shortcode, which, of course, is wrong. How to diabled it? We can disabled WordPress’s Built-in Canonical
Read more
Howto: ssh automatically add new hosts to the list of known hosts
Posted onWhen managing many hosts, answering 100s of “yes” can make us crazy. In a trusted environment, let ssh automatically add the new hosts to the list of known hosts and free us from typing “yes”es. How to enable it? Method 1. Passing option to ssh ssh -o StrictHostKeyChecking=no username@host Method 2. Configuring ~/.ssh/config To automatically
Read more
Vim: case insensitive search
Posted onBy default, Vim does case sensitive search. How to make case-insensitive search in Vim? By default, Vim does case sensitive search. :set ignorecase can set Vim to conduct case insensitive search. However, it also affects substitutions, which is not we want However, how to do a case insensitive search only when it is needed? Use
Read more
Vim: Pasting text as is in Vim in Paste Mode
Posted onPasting code from another application to Vim is a nightmare. The autoindent features of Vim drive you crazy. How to make it easier to use? Pasting code from another application to Vim is a nightmare. The autoindent features of Vim will drive you crazy. What help you out is the “paste mode”. To paste code
Read more
How to add author information in Google search results
Posted onHow to enable the author information in Google search results as shown for many posts? As a post writer, we may want our authorship information to appear in search results. To do this, we need a Google+ Profile with a good, recognizable headshot as the profile photo. Then, verify authorship of our content by associating
Read more
Gnome: disabling / deleting keyrings
Posted onHow to disable/delete the current keyrings on gnome? If the Gnome keyrings are not needed, or we forget the password, we can disable/delete the current keyrings. The keyrings are stored under ~/.gnome2/keyrings/ To disabled or delete current keyrings, we can simply delete this folder: rm -rf ~/.gnome2/keyrings/ Remember to backup this directory if you still
Read more
Installing Latex and Compiling a Latex Docuent in Linux
Posted onLatex is a popular document preparation system that is widely used for creating scientific and technical documents. Compiling Latex documents on Linux is a straightforward process that requires only a few Latex packages and a set of commands. By following the steps outlined in this post, you can easily compile Latex documents on your Linux
Read more
How to disable automatic comment insertion in Vim
Posted onHow to disable automatic comment insertion in Vim? Add to ~/.vimrc: au FileType c,cpp setlocal comments-=:// comments+=f:// More: http://vim.wikia.com/wiki/Disable_automatic_comment_insertion
How to set up Firefox Sync?
Posted onHow to set up Firefox Sync? The online Firefox help provides a very good tutorial on setting up Firefox sync across computers and other devides: http://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync
Office 2007: Save as PDF or XPS
Posted onHow to export a work file to PDF in Office 2007? 2007 Microsoft Office Add-in: Microsoft Save as PDF or XPS:Â http://www.microsoft.com/en-us/download/details.aspx?id=7 This download allows you to export and save to the PDF and XPS formats in eight 2007 Microsoft Office programs. It also allows you to send as e-mail attachment in the PDF and XPS
Read more