Review your favorite Linux distribution.
Go Back > Blogs
User Name



Regex in LibreOffice

Posted 05-24-2016 at 05:06 AM by HMW

Although I prefer to work with text in editors, and not in word processors, I sometimes have to. Today I faced a massive editing task in a formatted .rtf document. I had to iron out some "bugs" in the text. Such as no space after a dot:

Now, going through this massive text and look for these occurances manually clearly wasn't an option. I'd rather eat a cactus. Had it been "normal" - not formatted - text, I could have used regular expressions...
Posted in Uncategorized
Views 2420 Comments 0 HMW is offline

Bash arrays as Python lists (sort of)

Posted 08-08-2015 at 11:38 AM by HMW
Updated 08-08-2015 at 11:44 AM by HMW

If you have some experience with higher level programming languages (such as Python for instance), you have undoubtedly came across lists and arrays.

There are arrays in Bash too, but there is a pitfall when you delete items from an array in Bash; the index disappears with the item!

First, consider this example with a list in Python:
>>> myList = ['foo', 'bar', 'baz']
>>> myList
['foo', 'bar', 'baz']
>>> del myList[0]
Posted in Uncategorized
Views 2671 Comments 0 HMW is offline

Being a geek sometimes saves the day

Posted 06-23-2015 at 09:10 AM by HMW
Updated 06-23-2015 at 09:12 AM by HMW

So, there we were, sitting in front of a PC about to do some actual work. But we couldn't, because we needed instructions from a particular e-mail. Said e-mail could not be reached online since it was sent using POP, not IMAP.

The computer with the super important instructions did not have any VNC connection to the outer world, so we could not simply log in that way, start Thunderbird and check out the e-mail from a distance.

What do you do? Take the bus to where the...
Posted in Uncategorized
Views 1319 Comments 0 HMW is offline


All times are GMT -5. The time now is 05:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration