Apr 3, 2014

Ubuntu 12.10 bug : paraview

https://launchpad.net/~gladky-anton/+archive/paraview
http://ppa.launchpad.net/gladky-anton/precise-backports/ubuntu/dists/devel/main/binary-amd64/

So in essence: this is a common bug in Ubuntu.

http://www.cfd-online.com/Forums/openfoam-paraview/121904-nuisance-output-messages-paraview-3-12-0-64-bit-openfoam-version.html


The quickest solution to no longer have to be bothered by this kind of buggy warning messages, should be to do these steps as follows:

  1. Add the repository that has got the fixed ParaView 3.98 for Ubuntu 12.04 and 12.10, by running:
    Code:
    sudo add-apt-repository ppa:gladky-anton/paraview
  2. Then update apt-get's cache and upgrade ParaView:
    Code:
    sudo apt-get update
    sudo apt-get install paraview
  3. Then uninstall the ParaView 3.12.0 version that is provided for OpenFOAM:
    Code:
    sudo apt-get remove paraviewopenfoam3120
  4. Add an alias command to your "~/.bashrc" file:
    Code:
    alias paraFoam='paraFoam -builtin'
  5. Start a new terminal window and try running paraFoam from within your case folder.

Mar 10, 2014

wasabi xbox 360 mod to play backups from hard disk : a to z

Tutorials

general
http://xboxpirate.eu/forums/topic/1599-wasabi-360s-setup-and-installation-guide-beta/

check your dashboard version is compatible
https://www.youtube.com/watch?v=58gryfLMlew
-----------------------------------------------
get the dvd drive key
https://www.youtube.com/watch?v=4edHp_ltFpQ
hands on: http://www.ehow.com/how_5806788_out-360-dvd-drive-key.html
using computer:
---------------------------------------------------
or use wasabi ultra with auto key extraction
https://www.youtube.com/watch?v=BPtIVJ8IwYI

Where to get the hw
http://www.modchipcentral.com/store/wasabi360-wasabi-360-usa-canada.html
http://www.ebay.com/itm/TWO-Wasabi360-ultra-for-X360-Slim-/141155127529?pt=LH_DefaultDomain_0&hash=item20dd8050e9

installation
http://www.modcontrol.com/Board/xbox-360-reviewcenter/34738-wasabi360-ultra-x360s-review-english.html
http://team-xecuter.com/forums/archive/index.php/t-73706.
hard disk (esata)

Jan 31, 2014

Overwriting to set of files in a folder with awk + add a line to print existing variables with fortran

shell script

#!/usr/bin/
for file in *.txt
do
awk -f f.awk "$file" > "${file}.tmp" && mv "${file}.tmp" "$file"
done

awk script

{
  print gensub(/sqrt\(([^)]*)\)/,"&; print*, \"\\1\"","g")

}

Run the shell script to excecute
sh ./run.sh

This will execute the awk script
example:

input.txt

abc;
sqrt(7);
def;

after we run the script

input.txt will look like following.

abc;
sqrt(7); print, "7";
def;


Dec 6, 2013

Fusion code

#! /bin/bash

files=(*.txt)

for ((i=0; i<${#files[@]}; i++)) ; do
    file="${files[$i]}"
    awk -f f.awk "$file" > "${file}.mod"
done

 f.awk is:
{
    gsub(/\([^)]*\)/,"&; printf&")
    print
}

input.txt:

x=7;
sqrt(x+5*4); sqrt(x*x); 
i=3;
a=2+sqrt(8);

Running: awk -f f.awk input.txt gives:
x=7;
sqrt(x+5*4); printf(x+5*4); sqrt(x*x); printf(x*x); 
i=3;
a=2+sqrt(8); printf(8);

This wont work for nested parenthesis, like sqrt(4+2*(x+y))
Running: awk -f f.awk input.txt>>output.txt writes it to output file

Dec 5, 2013

Paraview Client Server model

We can't use the binaries for this model. Paraview has to be compiled on the server.
Following should be installed along.
1. cmake : cross platform build tool. CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment
2. Qt
http://qt-project.org/downloads

QT installation..
Goto INSTALL file in the downloaded unzipped tar file.
Look at the html for embedded Linux
http://qt-project.org/doc/qt-4.8/qt-embedded-install.html

cd  ~/qt-everywhere-opensource-src-4.8.5
 ./configure -embedded
make

now set the path in (your home directory) ~/.bash_profile

PATH=/usr/local/Trolltech/QtEmbedded-4.8.5/bin:$PATH
 export PATH
also set cmake path 


ParaView uses Qt as its GUI library. Qt is required whenever the ParaView client is built.
set qt path>>
export PATH=/home/umunipala/research/sem4/source/qt/qt-everywhere-opensource-src-4.8.5/bin:$PATH

 file and source:: give the executables

export QT_QMAKE_EXECUTABLE=/home/umunipala/research/sem4/source/qt/qt-everywhere-opensource-src-4.8.5
Need to set this as environment variable
  and run paraview : try qt installation and then set env variables. Then try the following...

/home/umunipala/research/sem4/source/ParaView-v4.0.1-source/CMake  is the location to run this command

  1. Run ccmake to configure the Makefiles
  2. %
    ccmake ../ParaView-v4.0.1-source


-----------------------------------------------------------------------------------------------------------------------------------------------------
3.MPI
4.Python
5 Mesa 3d graphics library
http://www.mesa3d.org/download.html
ftp://ftp.freedesktop.org/pub/mesa/9.0.1/

Cmake

There doesn't seem to be a 64 bit. Going to use Linux i386
http://www.cmake.org/cmake/resources/software.html
Installation location : /home/umunipala/research/sem4/source/cmake (binaries)

Source installation location:
/home/umunipala/research/sem4/source/cmake/cmakesource/cmake-2.8.12.1
steps:
>> ./bootstrap
>> make
>>make install

-- Install configuration: ""
CMake Error at cmake_install.cmake:36 (FILE):
  file cannot create directory: /usr/local/doc/cmake-2.8.  Maybe need
  administrative privileges. :(

Lets try the binary.
Maybe we need to add the bin to the path.
export PATH=/home/umunipala/research/sem4/source/cmake/cmake-2.8.12.1-Linux-i386/bin:$PATH


configuration of client with server:
https://www.alcf.anl.gov/user-guides/vis-paraview-data-analytics-cluster

Followers