29 October 2012

[Mac] Photoshop in case-sensitive harddisk

Just found out that Photoshop apparently is not installable on Mac OSX with case sensitive volumes. Someone make a hack to make it work on one.

See the solution here. Installed smoothly.

Disregard of why one decide to have a case sensitive volumes, I don't understand why Adobe didn't put such (simple) hack to make it work, despite it being such a big company, with such expensive softwares...

22 October 2012

copy files of certain date range

copy files modified on 2012.10.13 only
find . -newermt "2012-10-12 23:59:59" -not -newermt "2012-10-14 00:00:00" -exec cp -p "{}" /tmp \;

08 October 2012

irssi

use irc from terminal.
worked on ubuntu and max OSX.

change nickname
/nick username

join a channel
/join #channel_name

list users in a channel
/names

make user an op
/msg chanserv op #channel_name username
/mode #channel_name +o username

auto connect
/server add -auto -network Freenode irc.freenode.net 6667
/network add -nick username Freenode
/channel add -auto #channel_name Freenode

05 October 2012

GLUT in Mac OSX

source

GL Header
#ifdef __APPLE__
#  include 
#  include 
#  include 
#else
#  include 
#  include 
#  include 
#endif

Makefile
# Mac OS alternate cmdline link options
UNAME = $(shell echo `uname`)
ifeq "$(UNAME)" "Darwin"
 LDFLAGS = -framework Carbon -framework OpenGL -framework GLUT
endif

GtkglArea

install from macport
sudo port install gtkglarea2

makefile (same as Ubuntu)
CPPFLAGS += `pkg-config gtkgl-2.0 --cflags`                                                                             
LIBS += `pkg-config gtkgl-2.0 --libs`   

01 October 2012

mts to avi

Program:
Any Video Converter (Free)

Problem:
slow/fast playback result for 60fps mts videos,
wrong frame ratio (is actually a 16:9)

Solution:
1. Edit -> Options -> Video -> Audio/Video Sync -> slide until 60
2. Frame Size = 1280 x 720
3. Video Framerate = Auto
4. A/V Sync = Default