A Ruby script to remove binary (garbage) characters from a text file
Problem: You have a file that should be a plain text file, but for some reason it has a bunch of non-printable binary characters (also known as garbage characters) in it, and you'd like a Ruby script...
View ArticleLinux rm command man page
This page shows the contents of the Linux rm command man page. The rm command ("remove") is used for deleting files and directories on a Unix or Linux system.This rm command output was created on a...
View ArticleMac Dock applications - How to move (or remove) a Mac application icon
Mac Dock icon FAQs: How do I move a Mac application icon to the Dock so I can access it easier? Also, how do I remove an application icon from the Mac Dock?read more
View ArticleMac Dock folder tip - How to move a folder to the Mac Dock
Mac Dock FAQ: How do I move a commonly used Mac folder to the Dock so I can access it easier?When you first buy a Mac, the right side of the Dock (the right side of the highway stripe on the Mac Dock)...
View ArticleThe Linux rm command (remove files and directories)
Linux FAQ: How do I delete files (remove files) on a Unix or Linux system?The Linux rm command is used to remove files and directories. (As its name implies, this is a dangerous command, so be...
View ArticleiPhone HTML app full screen mode - How to remove the URL and button bars
iPhone HTML web app FAQ: In an HTML web app optimized for the iPhone, how do I remove the URL bar on top of the iPhone Mobile Safari web browser so I can show my HTML app in full screen mode?When...
View ArticlejQuery - Create a textarea, insert text into a textarea
jQuery FAQ: How do you create a textarea using jQuery? Also, how do I insert content (text or HTML) into a textarea with jQuery?I don't know if this will make any sense without showing my HTML, but I...
View ArticleTell Git not to track a file any more (remove from repo)
Git rm FAQ: How do I tell Git not to track a file (or files) any more? That is, I want to remove the file from the Git repo?While working on an application named "sarah" yesterday (named for the house...
View ArticleDrupal front page - Removing the H1 title tag
Drupal FAQ: How do I remove the H1 title tag from the front page of a Drupal website?I just ran into this problem on my new website, How I Sold My Business: A Personal Diary. Whenever you create a...
View ArticleScala Maps (Map class examples)
Here's a quick look at how to use the Scala Map class, with a colllection of Map class examples.The immutable Map class is in scope by default, so you can create an immutable map without an import,...
View ArticleScala: How to add, update, and remove elements with a mutable Map
This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 11.15, “How to Add, Update, and Remove Elements with a Mutable Map”ProblemYou want to add, remove, or...
View ArticleScala: How to add, update, and remove elements with immutable Maps
This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 11.16, “How to Add, Update, and Remove Elements with Immutable Maps”ProblemYou want to add, update, or...
View ArticleScala: How to delete documents in a MongoDB with Casbah
This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 16.8, “How to delete documents in a MongoDB with Casbah.”ProblemYou want to delete one or more documents...
View ArticleHow to drop the first matching element in a Scala sequence
Summary: This blog post shows one way to drop/filter the first matching element from a Scala sequence (Seq, List, Vector, Array, etc.). I don’t claim that the algorithm is efficient, but it does...
View ArticleGit - How to automatically `git rm` all files that have been deleted on disk
This SO tip on how to automatically remove/delete all files from a Git repository that you have already deleted on disk is a real timesaver. Of course it’s a wee bit dangerous (and probably won’t work...
View Article
More Pages to Explore .....