Nugroho's blog.

Monday, June 12, 2017

Change the "Cited on Page" Strings in LaTeX.

I have LaTeX document written in Indonesian and it's nice and yada yada. The minuscule problem is the bibliography. I used biblatex and it look like this.





The problem is "cited on page" and "cited on pages" string. It's supposed to be "disitasi pada halaman" and "disitasi pada halaman-halaman".

What I need is add this lines to preamble.

\DefineBibliographyStrings{english}{
 backrefpage={disitasi pada halaman},
 backrefpages={disitasi pada halaman-halaman}
}


And I got this, :)

All was well, :)



HyperRef and Bookmark Combo in LaTeX.


I use this preamble in order to show bookmarks on PDF generated from my .tex file.

This way, we could navigate through part, chapter, section and subsection (depending on our depth setting) using table of content sidebar of PDF reader.

code

\usepackage{hyperref}
\hypersetup{hidelinks,backref=true,pagebackref=true,hyperindex=true,colorlinks=false,breaklinks=true,urlcolor= ocre,bookmarks=true,bookmarksopen=true,bookmarksdepth=3,pdftitle={Title},pdfauthor={Author}}
\usepackage{bookmark}
\bookmarksetup{
open,
numbered,
addtohook={%
\ifnum\bookmarkget{level}=0 % chapter
\bookmarksetup{bold}%
\fi
\ifnum\bookmarkget{level}=-1 % part
\bookmarksetup{color=ocre,bold}%
\fi
}
}
.

Thursday, June 8, 2017

BibLaTex Problem

Have you had this error?
$ biber main.aux
INFO - This is Biber 2.1
INFO - Logfile is 'main.aux.blg'
ERROR - Cannot find control file 'main.aux.bcf'! - did you pass the "backend=biber" option to BibLaTeX?
INFO - ERRORS: 1
Nugrohos-MacBook-Air:tesBibTex nugroho$ 

Me too.

The solution is simple, make sure the command is

$biber main

and not

$biber main.aux


Monday, June 5, 2017

Using Kivy on MacOS


Here's my first kivy program after a while.



Tuesday, May 23, 2017

Adding Piezo and Replace Tune O Matic on ES175 Replica.


Why? I want acoustic electric package in one guitar. In order to install Fishman piezo, I need to replace Tune O Matic with regular acoustic bridge saddle.

Is it success? Uh, oh, maybe.

What about sound after mod? It's nearly acceptable.

Nearly? Err, there's fret bussing, the action of the mod with acoustic saddle is too low.

Just that? There's intonation problem too, I couldn't set individual string length on the bridge.

Are you crazy? Yup.

Are you happy now? Not yet.




Guitar Intonation.

Have you tune your guitar using clip-on tuner and it's perfectly in tune for all open strings, but it getting horribly out of tune at high fret. Yup, that's intonation problem striking at you.

What's guitar intonation? Well, on traditional style guitar, with straight frets, the fret placement is based on a string or based on 'standard'  measurement. The problem with this placement is while it's fine with 1st string, it doesn't sound right with 2nd string (b) or 3rd (G). Of course it's like Heisenberg Uncertainty Principle, if we make it work on G-string, it will sound wrong on high-e string.

Can it be solved? Some people using 'true temperament' system on their fretboard. The fret in this system is not straight but have a certain shape in order to get the strings perfectly in tune. Of course different string gauge will need different fret shape so one guitar will stuck on one type of string. (We might use another string, but it will out of tune, maybe worse than standard straight frets).

Okay, it's not generally practical. Is there another way?

Thursday, May 18, 2017

Playing with Memo in Delphi


I change the font in memo (tMemo) into courier. With this change, it's easy to do string manipulation with old Pascal style.

Below, I create small program with read input from edit into n variable. The input can only contain number 1 to 9.

The output is displayed on Memo. It's just number 123456789 (yeah, it has type string, but its number).

It's that all? No. The number's forming a 'cross' centered on number specified in edit. :)



323f (5) amp (1) android (12) apple (7) arduino (18) art (1) assembler (21) astina (4) ATTiny (23) blackberry (4) camera (3) canon (2) cerita (2) computer (106) crazyness (11) debian (1) delphi (39) diary (286) flash (8) fortran (6) freebsd (6) google apps script (8) guitar (2) HTML5 (10) IFTTT (7) Instagram (7) internet (12) iOS (5) iPad (6) iPhone (5) java (1) javascript (1) keynote (2) LaTeX (6) lazarus (1) linux (29) lion (15) mac (28) macbook air (8) macbook pro (3) macOS (1) Math (3) mathematica (1) maverick (6) mazda (4) microcontroler (35) mountain lion (2) music (37) netbook (1) nugnux (6) os x (36) php (1) Physicist (29) Picture (3) programming (189) Python (109) S2 (13) software (7) Soliloquy (125) Ubuntu (5) unix (4) Video (8) wayang (3) yosemite (3)