Author Archives: remkohdev

Rhino: OptimizationLevel and Java Heap Space

When loading external JavaScript libraries like env.js or jquery.js
load('/Users/nl11087/dev/tradecard/modules/lib/env.rhino.1.2.js');
load('/Users/nl11087/dev/tradecard/modules/lib/jquery-1.8.3.js');

You might get a OutOfMemoryError:
exception from uncaught JavaScript throw: java.lang.OutOfMemoryError: Java heap space

Solution:
java org.mozilla.javascript.tools.shell.Main -opt -1
or
Packages.org.mozilla.javascript.Context.getCurrentContext().setOptimizationLevel(-1);

Cretan Bulgari

I have a Cretan bulgari, a short-necked tamburas in Greek or baglama or saz in Turkish, sometimes called a çöğür in Turkish, tuned in the style of the saz, with a quarter tones.

I have it tuned in C-G-D (low to high), in short-neck baglama saz tuning. From upper to lower strings the first and second are the round-wound metal strings, also the thickest strings. The third and fourth strings are the same, and the sixth and seventh strings are the same. The rosetta style sound hole is on the upper side.

Jas’ Beginning to play the Baglama Saz

Taksimi on bulgari or kopuz saz made by Dimitris Rapakousios played by friend

Baglama Saz tutorial

 

Drupal: Color.Module

Tips and Tricks
When you get an ‘undefined index’ warning, make sure the mentioned key is present in your color.inc info array.

Important: Only if the color in your $info[‘css’] file that you want to change with the palette in the drupal color picker is preset in the colors.inc default scheme and the hex value exactly matches the hex value in the css file, will the color.module overwrite your css file settings.

Note: when testing and making changes to your regular colors.css file, you must regenerate the color.module’s copy of the colors.css file before you will see the changes, as color.module will look for the generated $info[‘css’] and ignore your original css.
Continue reading

CSS Tip: styling lists

To create horizontal tabs from a unordered list, you can style your list as follows:

ul {
list-style-type: none;
margin: 0px;
padding: 0px;
}
li {
display: inline;
}

The above creates the horizontal list without bullet points. The below will set the height of the bar and synchronizes the height of the list with the height of the bar.
Continue reading

CSS: Basic Project Structure

~/css
~/css/color.css
~/css/font.css
~/css/html.css
~/css/layout.css
~/css/style.css
~/imgs
~/imgs/logo_large.png
~/imgs/logo_small.png
~/js
./index.html
./index.php
.htaccess

color.css
All color information goes in the color.css file, so that it is easy to just change the color appearance of your site.

font.css
The font file contains font family and font size information. The font color goes in the color.css file.

html.css
The html file contains the styling of default HTML tags.

layout.css
The layout file contains the box structure of your site. You should be able to draw the site on a sheet of paper with solely boxes and a keyword for each box’s content.

style.css
The style file contains information for div tags like margins, padding, borders, list style. The style creates the rough look and feel for your site.

Upgrade from Lion to Mountain Lion

Apache overwrites the Lion configurations and I needed to reconfigure Apache to run my localhost websites. Among other the AllowOverride All permissions in /etc/apache2/httpd.conf and /etc/apache2/extra/httpd-vhosts.conf caused my WordPress Permalinks to throw 404 Not Found errors.
If Apache is not running, start the server manually with

sudo apachectl start

Disk Permissions were broken, causing me to be unable to access among other the Applications folder from Finder. I could access the folder from the command line and was able to run the Disk Utility and repair Disk Permissions.

open -a /Applications/Utilities/Disk\ Utility.app/

Reinstall X11 from http://xquartz.macosforge.org/trac/wiki/X112.7.2.

Reinstall Command Line Tools from Xcode > Preferences > Downloads > Components to reinstall gcc.