Wednesday, October 29, 2014

Paste text in Mac Powerpoint - from Crome - Work around

Some times it fails to paste text in Mac Powerpoint  when something is copied from Crome, or some browsers. Here is the work around:


Use Paste special. 

  • Edit->Paste Special
  • Its keyboard shortcut is Control-Command-v.

Tuesday, October 28, 2014

Installing Dokuwiki on Mac OS X (Mavericks)

For the first time I was successful in installing Dokuwiki on my mac (Its a MacBook Air running Mavericks).

I used info from a combination of these weblinks (almost in that order)
http://machiine.com/2013/how-to-install-apache-and-php-on-a-mac-with-osx-10-8-mamp-part-1/
http://machiine.com/2013/how-to-setup-mysql-on-a-mac-with-osx-10-8-mamp-part-2/
http://machiine.com/2013/how-to-setup-phpmyadmin-on-a-mac-with-osx-10-8-mamp-part-3/
and
https://www.dokuwiki.org/install:macosx
and
http://metadata.mx/personal-wiki/

Please remember you have use some common sense in implementing this. For example I didnt use MAMP or Fluid. But some info like use: http://localhost/~username/dokuwiki/doku.php to access the dokuwiki, etc. 

Tuesday, September 30, 2014

Shrink Preview PDF files without ruining image quality

The following instructions at the given link are pretty useful.

http://www.macworld.com/article/1168311/shrink_preview_files_without_ruining_image_quality.html

If you are not satisfied with results of the Reduce File Size filter (which we use to make PDFs small enough to send by e-mail, etc), follow these steps:

Go to the folder /System/Library/Filters, and open the XML file: Reduce File Size.qfilter

Now rename (copy) that into three files: Reduce File Size Good.qfilter, Reduce File Size Better.qfilter, and Reduce File Size Best.qfilter. Then change the parameters of each file: 0.25, 0.5 and 0.75 for Compression Quality (respectively) and 842, 1684, and 3508 for ImageSizeMax (ditto). (The first is A4-size at 72dpi, the second A4 at 144dpi, and the third A4 at 300dpi).
Finally, change the default string for the Name Key at the end of each file—which is what displays in the Export menu—to match its file name. 
You will have 3 versions of PDF quality filters, when you "export" files to PDF next time. 

Sunday, September 29, 2013

CUDA Clang Error on Mac OSX 10.8

If you got the following error in compiling CUDA sample codes on your Mac OSX 10.8

  1. clang: error: unsupported option '-dumpspecs'
  2. clang: error: no input files
The best solution lies here: devtalk.nvidia.com forum link 
 
This is what is been suggested and that worked for me: 

I had the same problem, thanks to martindeveloper. I found the 
findcudalib.mk but didn't have llvm-g++ (tried to install it but lost 
like 2 hours for nothing, because it doesn't come anymore with XCode and 
compiling it from llvm.org didn't work). Tried with gcc/g++ but nothing
 worked



Finally, I changed GCC ?= g++ to GCC ?= /usr/bin/clang (on findcudalib.mk
and everything worked fine (even if clang support is beta)

Monday, April 23, 2012

To find out lines of codes in a source code directory

Use:

find ./name-of-dir '*.php' | xargs wc -l
 
OR
 
( find ./name-of-dir -print0 | xargs -0 cat ) | wc -l 
 
ref: link 

Monday, November 14, 2011

Start and access Amazon EC2 micro ubuntu instance.

Logon/sign in: http://aws.amazon.com/ec2/

Start an ubuntu micro-image, Eg:
ebs/ubuntu-images-milestone/ubuntu-oneiric-alpha2-amd64-server-2011*** (ami-00b14b69)

create a keypair:_ something.pem

change the permission of something.pem to 400:
sudo chmod 600 something.pem

create security group:
- open ssh, tcp - in the security group, by editing/adding rules.

access the virtual machine using ssh, using public DNS of instance:
For ubuntu machines, default user is ubuntu:

So, access it like:
ssh -i something.pem ubuntu@ec2-67-202-**-***.compute-1.amazonaws.com

To install gcc/openmpi

sudo apt-cache search make g++ libopenmpi-dev openmpi-bin openmpi-doc build-essential gcc-multilib libstdc++6
sudo apt-get -y update
sudo apt-get -y install make libopenmpi-dev openmpi-bin openmpi-doc build-essential gcc-multilib libstdc++6

Sunday, March 13, 2011

iweb parsing error - fix

If there is a Parse error: syntax error, unexpected T_STRING, etc in publishing a website developed using iweb on web hosting servers, try the following. I got it fixed.

  • create a file named ".htaccess", where you put "index.html" (or folder called "public", some say - I havent tried this).
  • Add either of the following line to that file:
    • php_flag short_open_tag off
      -- OR -- 
    • php_value short_open_tag 0
That should fix the problem. I got the tip from the following link. It works for me.

http://answers.yahoo.com/question/index?qid=20081022040450AAY1T8u

About Me

My photo
Jaison Paul Mulerikkal is the Vice Principal of Rajagiri School of Engineering and Technology (RSET), Kochi. He was the Principal of Jyothi Engineering College (JEC), Cheruthuruthy, Trissur, India. He is a member of CMI Sacred Heart Province, Kochi. He is a civil engineer by profession, but did his Masters in Information Systems from RMIT University, Melbourne, Australia and subsequently received his PhD in High Performance Scientific Computing from the Australian National University. He had worked as a computational scientist at the University of Auckland, New Zealand.

Jaison's Tech Stuff