Wednesday, December 02, 2009

Backup System for Jailbroken iPhone On Windows…

Batch file Backup system for Jailbroken iPhone using OpenSSH, WinSCP, 7za.exe and yyyymmdd.com

FileList.csv for list of files to be backed up on next run. This FileList.csv is copied into the archive for restore.

Have not made restore yet as have not needed it yet.

Currently the System, using the mobile user  privileges, takes backup of the following from my Phone:

Address Book including Pictures
SMS
Call History
Calendar
Notes with Index
Keyboard’s Dynamic-Text
Safari Book Marks and History
System Configuration/Preferences

Since it uses a File List any file can be backed up on regular interval.

The FileList.csv stores category for defining the Local Folder where it will store the file.

Category, Full Path and File Name on iPhone, Permissions, Owner, Group

The Permissions, Owner and Group are not used during backup, but are kept incase of restore where after restoring the files need to set permissions, owner and group for them.

Well have uploaded the file to Rapidshare.com since can not upload with this post.

935104

iBackup.zip            Size: 1615 KB

If you find this script useful buy me a coffee 

 

Thursday, May 14, 2009

Ruby on Rails – Cygwin Bash Script (NOT CHECKED)

#!/bin/bash
clear
cd ~
wget
http://rubyforge.org/frs/download.php/56227/rubygems-1.3.3.tgz
tar xvfz rubygems-1.3.3.tgz
cd rubygems-1.3.3
unset RUBYOPT
ruby setup.rb
cd ~
gem update --system
gem install rails
gem install actionwebservice
gem install ZenTest
gem capistrano mongrel railsmachine gem_plugin daemons rspec
gem install rmagick
cd /cygwindrive/c/
mkdir mysql-src
cd mysql-src
wget
http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.34.tar.gz/from/http://mysql.mirrors.pair.com/
tar xvfz mysql-5.1.34.tar.gz
cd mysql-5.1.34
./configure --without-server --without-libedit --with-readline
cd include
make
make install
cd ..
cd libmysql
make
make install
cd ..
cd ..
wget
http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.0.1.tar.gz/from/http://mysql.mirrors.pair.com/
tar xvfz mysql-connector-c-6.0.1.tar.gz
cd mysql-connector-c-6.0.1
cd include
cp *.* /usr/local/include/mysql/
cd mysys
cp *.* /usr/local/include/mysql/
cd ..
cd atomic
cp *.* /usr/local/include/mysql/*.*
cd /etc/
echo [client]$'\n'host=127.0.0.1$'\n'[mysqld]$'\n'host=127.0.0.1$'\n' > my.cnf
cd ~
gem install mysql

Ruby on Rails, a pain in windows for a beginner…

My Installation Notes… Incase I forget, so that I don't waste time later on…

Download and Install:
MYSQL:
http://dev.mysql.com/downloads/mysql/5.0.html#win32
CYGWIN:http://www.cygwin.com/setup.exe
            Save and run setup.exe in c:\cygwin\pkg\
            Select Site
http://mirrors.dotsrc.org/
            Do Default Install
CONSOLE:
http://sourceforge.net/projects/console
            Install / Copy to Path
            Note to self: Always run as Admin
e-TextEditor or jEdit

Cygwin Additional Packages Install:
All->Admin->Cron
All->Archive->All
All->Devel->Ruby (Required for RoR)
All->Web->Curl
(Required for Download additional packages)
All->Web->Wget
(Required for Download additional packages)
All->Devel->subversion-ruby
(Subversion System Option 1)
All->Devel->GCC (Required for MySql in RoR)
All->Devel->git (Subversion System Option 2)
All->Devel->git-completion (Subversion System Option 2)
All->Devel->make (Required for MySql in RoR)
All->Net->netcat
All->Net->ncftp
All->Net->ping
All->Net->whois
All->Shells->All
All->Web->httPing
All->Devel->autoconf
All->Devel->automake
All->Devel->bison
All->Devel->boost
All->Devel->ctags
All->Devel->cmake
All->Devel->cogito (Subversion System Option 2)
All->Devel->doxygen
All->Devel->gcc4
All->Devel->makedepend
All->Devel->pkg-config
All->Devel->robodoc
All->Devel->swig
All->Graphics->ImageMagick
(Required for RMagick)
All->Libs->libbz2-devel (Required for RMagick)
All->Libs->libmagick-devel (Required for RMagick)
NA->NA->XFree86-lib-compat (Not Available Now)
NA->NA->xorg-x11-devel
(Not Available Now)
All->Devel->openssl-devel (Not sure if MySql requires this)
All->Editors->joe
All->Editors->nano
All->Editors->mc
All->Editors->vim
All->Database->sqlite3 (Not sure if required)
All->Libs->libreadline5
(with source – Not required)
All->Libs->libreadline6 (with source – Only RTM required)
All->Web->fcgi
All->Utils->file
All->Utils->time

Start C:\Cygwin\Cygwin.bat
Technorati Tags: ,,

Exit

In home directory:
wget
http://rubyforge.org/frs/download.php/56227/rubygems-1.3.3.tgz
tar xvfz rubygems-1.3.3.tgz
cd rubygems-1.3.3
unset RUBYOPT
ruby setup.rb
gem update --system OR 
gem install rails
gem install actionwebservice
gem install capistrano mongrel railsmachine
gem install gem_plugin daemons rspec
gem install ZenTest
gem install rmagick

cd /etc/
echo [client]$'\n'host=127.0.0.1$'\n'[mysqld]$'\n'host=127.0.0.1$'\n' > my.cnf

cd /cygwindrive/c/
mkdir mysql-src
cd mysql-src

wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.34.tar.gz/from/http://mysql.mirrors.pair.com/

tar xvfz mysql-5.1.34.tar.gz
cd mysql-5.1.34

./configure --prefix=/cygwindrive/c/mysql-src/mysql-5.1.34 --exec-prefix=/cygwindrive/c/mysql-src/mysql-5.1.34 --without-server --without-docs --without-man --with-mysql=/cygwindrive/c/mysql-src/mysql-5.1.34/mysql_config

cd include
make
make install
cd ..
cd libmysql
make
make install
cd ..
cd ..
wget
http://dev.mysql.com/get/Downloads/Connector-C/mysql-connector-c-6.0.1.tar.gz/from/http://mysql.mirrors.pair.com/
tar xvfz mysql-connector-c-6.0.1.tar.gz
cd mysql-connector-c-6.0.1
cd include
cp *.* /usr/local/include/mysql/*.*
cd mysys
cp *.* /usr/local/include/mysql/*.*
cd ..
cd atomic
cp *.* /usr/local/include/mysql/*.*
cd ~
gem install mysql
Customize CYGWIN:
Edit C:\cygwin\home\{USERNAME}\.bashrc
Add the following:

            Inside # Aliases
                        # #######
# Shorten commonly used commands
alias srv='script/server'
alias mig='rake db:migrate'
alias log='tail -f log/development.log'
alias installrspec=’install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec’
alias installrspeconrails=’install svn://rubyforge.org/var/svn/rspec/tags/CURRENT/rspec_on_rails’

# If using e-Texteditor uncomment below line
# alias e='cygstart e'
# Now you can use “e .” inside your /rails/app directory to open

# If using jEdit uncomment below line
# alias j='cygstart jedit'
# now you can use "j ." inside your /rails/app directory to open

            Inside # Shell Options
                        # #############
# Mount custom directory to your cygwin environment
# You can then access these directories using cd /rails
mount -f -u -b "E:\MyRailsProjects" "/rails"
# For autochange directory uncomment below line
# cd /rails

Customize Console2:
Settings->Tabs->Add->
            Shell = c:\cygwin\bin\bash --login -i
            Background = R0, G47, B94
            Cursor Color = White

For Rail Apps:
Go to Rails Directory:
            cd /rails
Create App:
            rails app
Go to App Directory:
            cd app
Create Databases:
            mysqladmin -uroot create app_development
            mysqladmin -uroot create app_test
Install the RSpec:
             ruby script/plugin installrspec
Install the Spec:Rails Plugins:
            ruby script/plugin installrspeconrails
Generate RSpec:
            ruby script/generate rspec
For Model:
            ruby script/generate rspec_model post
For Controller:
            ruby script/generate rspec_controller blog

Monday, February 09, 2009

Finally settled with web host…

After considering many web host, finally settled with Hostcats.com windows reseller account.

Reasons for them are as under:

1) They are in India, and accepted cash transfer…
( No Credit Cards!!! )

2) On line support along with telephone support

3) They offered me 4 domains hosting with 4 GB space and 40 GB / Month data transfers…

Well now to make my websites… ;-)

Monday, May 12, 2008

Searching for a WebHost

Am also considering http://www.netwayweb.net/ 

They are offering Business Windows .NET Starter Account with
5 domains + 40 GB space + 300 GB /Mo transfer + PHP + ASP.NET for Rs. 2400 per Year. (i.e. about USD 50 per Year)

Think I will mostly go with them. (Need to talk to them over the phone first)

Saturday, May 10, 2008

Searching for a WebHost

After GISOL fraud, am still looking for a good webhost who can host multiple domains and allow aspx scripts.

Am currently discussing with http://www.net4.in/ as they are offering 50 MB for INR 499 per year for 1 host that's about USD 12 per year.

Monday, April 28, 2008

Kalyway Mac Os X 10.5.1 & HP nx7010

This entire weekend I was trying to get the Kalyway Mac Os X 10.5.1 up and running on nx7010... After 14 tries, and lurking in the insanelymac forums was able to boot to the Os...

The more I experimented, the more I realized why Apple fusses so much about Mac Os X only on their hardware and the whole "Customer Experience" thing...

The point is that Mac Os X works flawlessly on their hardware but on other systems, it may or may not work depending on the bios, hardware and the settings chosen on the Kalyway disk...

Final thoughts, it is better to just buy a MacBook Pro, if you are going to be paying for the system and the OS...

Thursday, April 24, 2008

Forgot about this...

I forgot about this weblog...

Will try to be more punctual from now onwards.

Am trying this from the Windows Live Writer. It seems it is easy to publish using this.