tag:blogger.com,1999:blog-44245630255621592492024-03-12T20:29:56.682-07:00Rashad's BlogC++, GRASS GIS, OpenJUMP,PostGIS, Python, LinuxRashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-4424563025562159249.post-11536187153804475692012-06-02T10:33:00.002-07:002012-06-02T10:34:12.309-07:00Unable to connect: Access denied: HTTP proxy server forbids port 6667 tunneling<div dir="ltr" style="text-align: left;" trbidi="on">
if you are using Pidgin IRC client behind a proxy and getting this error<br />
"Unable to connect: Access denied: HTTP proxy server forbids port 6667 tunneling"<br />
<br />
Select<br />
Account --> (select your account) --> Edit Account<br />
<br />
GoTo proxy tab and change proxy type to "<b>No Proxy</b>"</div>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-38731348370403965792012-06-01T04:12:00.002-07:002012-06-01T04:13:39.974-07:00mercurial abort: error: Name or service not known abort: error: Name or service not known abort: error: Name or service not known<div dir="ltr" style="text-align: left;" trbidi="on">
<i><u>Q:</u></i> when cloning a mercurial repository, if you are getting error<br />
<br />
"abort: error: Name or service not known"<br />
<br />
<i><u>Solution:</u></i><br />
If you are behind a proxy please make sure /etc/mercurial/hgrc or ~/.hgrc has correct proxy settings.<br />
Mercurial also uses ENV variable http_proxy if set. you can set http_proxy variable in unix using<br />
<br />
<b>export http_proxy=proxy.mydomain.in:8080 </b><br />
<br />
where proxy.mydomain.in is the host and 8080 is the port.<br />
<br />
<br />
This error can also happen if you were behind proxy before and now you are not.<br />
<br />
So to unset proxy setting for mercurial make sure in<br />
/etc/mercurial/hgrc<br />
~/.hgrc<br />
you had commented out those lines<br />
<br />
also clear the <b>http_proxy</b> ENV<br />
<br />
you can use unset command for this<br />
<br />
<b>unset http_proxy</b><br />
<br /></div>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com1tag:blogger.com,1999:blog-4424563025562159249.post-40283861105894135172012-05-29T08:40:00.004-07:002012-05-29T08:40:43.034-07:00GSoC2012<div dir="ltr" style="text-align: left;" trbidi="on">
OSSIM proposal has been accepted for this year's Google Summer of Code. This summer will be fully of C++ and python. :)<br />
<br />
<b>Full Proposal</b><br />
<a href="http://www.google-melange.com/gsoc/homepage/google/gsoc2012">http://www.google-melange.com/gsoc/homepage/google/gsoc2012</a><br />
<br />
<b>Weekly Updates</b><br />
<a href="http://trac.osgeo.org/ossim/wiki/GsocUnderWaterImageProcessing">http://trac.osgeo.org/ossim/wiki/GsocUnderWaterImageProcessing</a><br />
<br />
Source Code<br />
<a href="https://bitbucket.org/bugbrains/gsoc2012">https://bitbucket.org/bugbrains/gsoc2012</a></div>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-85960370260919617002012-05-29T08:32:00.000-07:002012-05-29T08:33:05.347-07:00VRGeo on cloud<div dir="ltr" style="text-align: left;" trbidi="on">
CDAC-B is providing cloud infrastructure for VRGeo<br />
<br />
You can access cloud version on<br />
<a href="http://vihang.garudaindia.in/vrgeo">http://vihang.garudaindia.in/vrgeo</a><br />
<br />
steps for using VRGeo is available at<br />
<a href="http://lsi.iiit.ac.in/steps.pdf">http://lsi.iiit.ac.in/steps.pdf</a><br />
<br />
VRGeo on Google+<br />
http://goo.gl/b5j2O</div>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com1tag:blogger.com,1999:blog-4424563025562159249.post-37433618620037583842012-05-29T07:47:00.000-07:002012-05-29T07:47:57.294-07:00apache htacess directory listing<div dir="ltr" style="text-align: left;" trbidi="on">
Apache allows to disable directory listing using htacess files.<div>
<br /></div>
<div>
By default in ubuntu apache document root directory is /var/www</div>
<div>
<br /></div>
<div>
you can edit configuration file located at /etc/apache2/sites-enabled/000-default</div>
<div>
<br /></div>
<div>
You have a folder called "private" in /var/www/private which contains some information. If your system is connected to internet and have public access anyone can get data from http://yourdomain.com/private !!</div>
<div>
<br /></div>
<div>
To disable directory listing try this:</div>
<div>
<br /></div>
<div>
create a file called .htaccess in /var/www/private</div>
<div>
set your favourite editor</div>
<div>
export EDITOR=vim</div>
<div>
<br /></div>
<div>
sudo $EDITOR .htaccess</div>
<div>
<br /></div>
<div>
Options -Indexes #disable directory listing on current directory</div>
<div>
or</div>
<div>
Options All -Indexes #disable directory listing recursively</div>
<div>
<br /></div>
<div>
<br /></div>
</div>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-12926143686675139922012-05-29T07:06:00.000-07:002012-05-29T07:06:59.601-07:00LSIViewer - The Free online Geospatial Data Viewer<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
LSI viewer (Libre Spatial Information Viewer) [1] was developed for users who may not have access to a suite of GIS software tools but would like to just view/display and print/export the data they have.<br />
LSIViewer is an Online Spatial Map Viewer for your Local Data including Map Styling. Basic Styling includes changing background color, pen color, fill color, label color, label size, pen width. It allows to view Attribute Table and export the current map view with styling to a SVG/JPEG/PNG files. Currently it can be used as a Map Viewer for Shapefile (.shp) format data. Other data formats are planned to be supported in later versions. LSIViewer doesnt depends on MapServer, Geoserver.<br />
You can start a discussion, report bugs, give feedback on our redmine instance[2].<br />
<br />
Developed and maintained by Lab For Spatial Informatics, IIIT Hyderbad<br />
<br />
[1] <a href="http://lsi.iiit.ac.in/lsi/lsiviewer/">http://lsi.iiit.ac.in/lsi/lsiviewer/</a><br />
[2] <a href="http://lsi.iiit.ac.in/redmine/projects/lsiviewer">http://lsi.iiit.ac.in/redmine/projects/lsiviewer</a><br />
</div>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-52886648125177610472012-05-29T06:32:00.000-07:002012-05-29T06:32:09.070-07:00Install GRASS GIS 7.0 svn<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Download GRASS GIS. you need an SVN client to checkout the source
<pre>
cd ~/code
svn checkout https://svn.osgeo.org/grass/grass/trunk grass7
</pre>
<br/>
<pre>
cd grass7
./configure --with-tcltk-includes=/usr/<wbr></wbr>include/tcl8.5
--with-proj-share=/usr/share/<wbr></wbr>proj --with-python
--with-gdal=/usr/local/bin/<wbr></wbr>gdal-config --with-ffmpeg=yes
--with-ffmpeg-includes="/usr/<wbr></wbr>include/libavcodec/
/usr/include/libavformat/ /usr/include/libswscale" --with-sqlite
--with-postgres --with-postgres-includes=/usr/<wbr></wbr>include/postgresql/
--with-wxwidgets=/usr/bin/wx-<wbr></wbr>config
--with-mysql-includes=/usr/<wbr></wbr>include/mysql --with-opengl-libs=/usr/lib/
</pre>
Compile using GNU Make
<pre>
make
</pre>
Install grass7. Default install location will be /usr/local/grass-7.0.svn
<pre>
sudo make install
</pre>
start GRASS GIS 7 using terminal.
#$grass70
</div>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-32218835056215556582011-08-30T23:11:00.001-07:002011-08-30T23:11:40.285-07:00HowTo Install Redmine on linuxInstall redmine on linux<br />
http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_using_Debian_packageRashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-74497433885916590162011-08-30T23:10:00.000-07:002011-08-30T23:10:28.237-07:00HowTo GRASS GIS Install<pre name="code" class="cpp">./configure
--with-tcltk-includes=/usr/include/tcl8.5
--with-proj-share=/usr/share/proj --with-python
--with-gdal=/usr/local/bin/gdal-config --with-ffmpeg=yes
--with-ffmpeg-includes="/usr/include/libavcodec/
/usr/include/libavformat/ /usr/include/libswscale" --with-sqlite
--with-postgres --with-postgres-includes=/usr/include/postgresql/
--with-wxwidgets=/usr/bin/wx-config
--with-mysql-includes=/usr/include/mysql --with-opengl-libs=/usr/lib/
make && sudo make install
</pre>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-80907827080129278162011-08-30T23:05:00.000-07:002011-08-30T23:05:53.046-07:00How To setup svn server on ubuntu<b>Create new SVN repo</b><br />
<br />
svnadmin create wgrass<br />
<br />
<b>Import files to SVN repo</b><br />
<br />
svn import /home/rashad/code/wgrass/ file:///home/rashad/svn/wgrass<br />
<br />
<br />
<b>Create User - newuser for svn repo</b><br />
<br />
<pre name="code" class="cpp">sudo htpasswd -cm /etc/apache2/pass.passwd newuser
Enter Password:
Re-Enter Password:
</pre><br />
<b>Add user to svn Repo</b><br />
<br />
nano wgrass/conf/passwd<br />
<br />
<pre name="code" class="cpp">### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.
[users]
newuser = pass
</pre><br />
<br />
nano wgrass/conf/svnserve.conf <br />
<br />
<pre name="code" class="cpp">[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = none
auth-access = write
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the directory containing
### this configuration file.
### If SASL is enabled (see below), this file will NOT be used.
### Uncomment the line below to use the default password file.
password-db = passwd
</pre><br />
<b>Setting up dav access</b><br />
Allow Anonymous checkout<br />
<br />
<pre name="code" class="cpp"><Location /svn/wgrass>
DAV svn
SVNPath /home/rashad/svn/wgrass
AuthType Basic
AuthName "wgrass"
AuthUserFile /etc/apache2/pass.passwd
Order deny,allow
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
</pre> Disable Anonymous checkout<br />
<br />
<pre name="code" class="cpp"><Location /svn/wgrass>
DAV svn
SVNPath /home/rashad/svn/wgrass
AuthType Basic
AuthName "wgrass"
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
</pre>now you can access svn on yourhos.com/svn/wgrass<br />
<br />
Happy Hacking :)<br />
<br />
<br />
<br />
Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0tag:blogger.com,1999:blog-4424563025562159249.post-17398047837618079322011-08-30T09:06:00.000-07:002011-08-30T09:16:16.161-07:00Convert .ogv files to avi using mencoderConvert .ogv to avi with sound<br />
<br />
<pre name="code" class="cpp">mencoder wgrass.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o wgrass.avi
</pre><br />
Convert .ogv to .avi without audio<br />
<br />
<pre name="code" class="cpp">mencoder wgrass.ogv -ovc xvid -oac nosound -xvidencopts pass=1 -o wgrass.avi
</pre><br />
Merge .mp4 files<br />
<br />
<pre name="code" class="cpp">
mencoder -forceidx -ovc copy -oac pcm -o out.avi 1.mp4 2.mp4 3.mp4 4.mp4 5.mp4 6.mp4 7.mp4 8.mp4 9.mp4 10.mp4 11.mp4 12.mp4 13.mp4
</pre>Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com1tag:blogger.com,1999:blog-4424563025562159249.post-37699204838857125822011-08-13T00:02:00.000-07:002011-08-13T00:02:28.354-07:00ubuntu apt-get 504 gateway timed out errorIf you are get a response like 504 gateway timed out error on Ubuntu 10.04+ when using apt-get update or apt-get install <br />
<pre>0%[waiting for headers] [waiting for headers]
<pre>Stop firewall and try apt-get again
To stop iptables do the following:
<pre>
$sudo iptables-save > /root/firewall.rules
$sudo iptables -X
$sudo iptables -t nat -F
$sudo iptables -t nat -X
$sudo iptables -t mangle -F
$sudo iptables -t mangle -X
$sudo iptables -P INPUT ACCEPT
$sudo iptables -P FORWARD ACCEPT
$sudo iptables -P OUTPUT ACCEPT
</pre>
To restore or turn on firewall type the following command:
<pre>$sudo iptables-restore < /root/firewall.rules
</pre>
<br />
If you are behind a proxy<br />
change proxy settings in /etc/apt/apt.conf<br />
Rashadhttp://www.blogger.com/profile/14064309608903036279noreply@blogger.com0