The best place to *find* answers to programming/development questions, imo, however it's the *worst* place to *ask* questions (if your first question/comment doesn't get any up-rating/response, then u can't ask anymore questions--ridiculously unrealistic), but again, a great reference for *finding* answers.

My Music (Nickleus)


gimp list of basic image editing use cases (UC) [ONGOING]

this will b an ongoing list of basic editing UC in gimp (or image editing, generally):

make selection transparent

select a part of the image to remove and make it see-through

  1. Open your image.
  2. Select the area you want to make transparent. Select the appropriate selection tool from the Tool window or the Tools - Selection Tools menu on the Layer window.
  3. In the Layer window (the one showing your image), select Layer - Transparency - Add Alpha Channel (unless it's greyed out--already done).
  4. Select Edit - Clear.
  5. Save the file.

src: "How to make a transparent background/selection on an image using GIMP"

... to be continued


[SOLVED] phpstorm project view increase font size


Editor > Colors & Fonts
"Save As" for "Scheme" n save a copy of th default scheme, eg "Nick CF (Default copy)"
click "Apply"

Appearance & Behavior > Appearance
check "Override default fonts by (not recommended):"
Name: i selected "Menlo"
Size: 16
click "Apply"


NOTE: essential comment that helped me solve this.


[SOLVED] mac osx el capitan: customize menubar clock date & time (hack)

/////////////// SETTING THE OSX MENUBAR DATE & TIME; based on:


$ cd

$ nano -w

killall -KILL SystemUIServer
while true
        defaults write "DateFormat" "EEEE' 'y.MM.dd' 'HH:mm:ss' 'z' ''week:'' 'ww"

$ chmod +x


$ ./


IF the menubar clock reappears w incorrect desired display format, run:

$ killall -KILL SystemUIServer

repeat (back to [START]) until the clock renders properly. it sometimes takes several attempts.

ELSE, stop the script:


ctrl-c (stop the "while" loop)


NOTE about the DateFormat value string:

"EEEE' 'y.MM.dd' 'HH:mm:ss' 'z' ''week:'' 'ww"

spaces seem to need to b surrounded by single quotes ' ', as did week since w was getting interpreted as smth else.

it will render like this:

NOTE 2: this unfortunately doesn't persist thru reboots or logging out (but it does persist if u lock the screen then log back in again), but i don't normally turn off my macbook so.. please tell me if u hav corrections or tips or improvements or new info :)


[SOLVED] php+jquery page loading twice (2 GET requests) instead of once

i was using jquery to set an element's css background-image inside $(document).ready(function()... , and when i removed that code th page would load once instead of twice:

var url ="imgbg");  // get the url string
el.css("background-image", "url('"+url+"')");  // set bgimg url

what was causing the extra page reload/GET request was an empty url string!

putting a simple if-test on url fixed it:

if (url != "") el.css("background-image", "url('"+url+"')");


my fiddle confirming this behavior:


jquery how to get this selector as string in event handler/listener

This won't show you the DOM path, but it will output a string representation of what you see in eg chrome debugger, when viewing an object.

    $('.mybtn').click( function(event){
    console.log("%s", this);   // output: "button.mybtn"



a path-include/require-scheme that will work everywhere.
paths can b copied to any file n will work, w/o needing to b changed--
as long as the __ROOT__ variable is properly configured at the top of the file u paste into :)


HTML5 form validation w jQuery ajax POST

a simple impl of a web form that uses built-in HTML5 validation, but submits the form using ajax, inside a jQuery click-event handler, instead of the default HTTP post request vis a vis the form tag.