Here’s how I did it, anyway:
sudo apt remove gnome-*
sudo apt install kubuntu-desktop
I’m on Ubuntu 16.04 LTS.
When I created a new class in IntelliJ IDEA, I’d get an automatic javadoc comment “Created by dmeyer on xx/xx/xx.” I wanted it to spell out my name…
To fix this, I went into File | Settings… | File and Code Templates | Includes | File Header and changed
(I’m on IntelliJ IDEA 2016.1.2 Linux)
Asciiquarium is a fun ASCII art program. How to get it running on Ubuntu?
- Get the tarball: http://www.robobunny.com/projects/asciiquarium/html/
sudo mkdir /opt/asciiquarium cd /opt/asciiquarium #untar the tarball here, then... sudo apt-get install libcurses-perl cpan install Term::Animation perl asciiquarium
Ran across a surprising SQL Server thing today: I was updating a query If you run a query that returns no rows and use the MIN() aggregate function, you get an empty resultset as expected, but the @@ROWCOUNT variable is set to 1. If you write the query as a TOP(1) query in a situation where it returns no rows though, you still get an empty resultset but @@ROWCOUNT is set to zero as expected.
Example of this in action (tested on SQL Server 2012):
CREATE TABLE MyTable(MyId INTEGER, MyName NVARCHAR(128));
SELECT MIN(MyId) FROM MyTable WHERE MyName LIKE 'MyTag'
IF @@ROWCOUNT <> 0 PRINT 'Nonzero row count' ELSE PRINT 'Zero row count' --Output: Nonzero row count
SELECT TOP(1) MyId FROM MyTable WHERE MyName LIKE 'MyTag' ORDER BY MyId
IF @@ROWCOUNT <> 0 PRINT 'Nonzero row count' ELSE PRINT 'Zero row count' --Output: Zero row count
DROP TABLE MyTable;
How to have some roman numeral page numbers and some arabic page numbers in an existing document in LibreOffice
I needed to format an existing LibreOffice 4.3 document to have some beginning pages with no page numbers, then some pages numbered with roman numerals (i, ii, iii…), then the rest of the pages numbered with arabic numerals (1, 2, 3…). Here’s how you do it.
1. Create a page style that will do roman numeral page numbers in the footer
1.1. Go to Format -> Styles and Formatting (or press F11)…
We currently use Drupal OpenChurch for our church website. On the sermon podcast page, any time there was a long sermon title the “play mp3 file” link would overwrite some of the text of the title, looking ugly:
Read the rest of this entry »