[ create a new paste ] login | about

Project: OSGeo
http://osgeo.org
Language:













Description:
The codepad dedicated to hackers of OSGeo Foundation communities. There is also another private paste service available at http://osgeo.pastebin.com/ for more general purposes.

Recent Pastes:

C, pasted on Jul 27:
1
2
3
4
5
import java.awt.*;
import java.applet.*;

public class snake extends Applet implements Runnable
{
...
view (240 lines, 3 lines of output)
C, pasted on Jul 20:
1
2
3
4
5
#include<stdio.h>

int main()
{
char c;
...
view (15 lines, 1 line of output)
C, pasted on Jul 20:
1
2
3
4
5
#include<stdio.h>

int main()
{
char c;
...
view (15 lines, 1 line of output)
C, pasted on Jul 20:
1
2
3
4
5
#include<stdio.h>

int main()
{
char c;
...
view (14 lines, 2 lines of output)
Python, pasted on Jul 8:
1
2
3
4
5
        lon = (500 / self.originShift) * 180.0;
        lat = (400 / self.originShift) * 180.0;

        lat = 180 / math.pi * (2 * math.atan( math.exp( lat * math.pi / 180.0)) - math.pi / 2.0);
        print lat;
view (5 lines, 4 lines of output)
Python, pasted on Jun 30:
1
2
3
4
5
Couldn't load plugin fTools due an error when calling its classFactory() method

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/qgis/utils.py", line 150, in startPlugin
    plugins[packageName] = package.classFactory(iface)
...
view (30 lines, 4 lines of output)
C++, pasted on Jun 23:
1
2
3
4
5
 main(){int i,n[]={(((1<<1)<<(1<<1)<<(1<<
    1)<<(1<<(1>>1)))+((1<<1)<<(1<<1))), (((1
    <<1)<<(1<<1)<<(1<<1)<<(1<<1))-((1<<1)<<(
    1<<1)<<(1<<1))+((1<<1)<<(1<<(1>>1)))+ (1
    <<(1>>1))),(((1<<1)<<(1<<1)<<(1<<1)<< (1
...
view (28 lines, 2 lines of output)
Plain Text, pasted on Jun 3:
1
2
3
4
5
-- Found SIP version: 4.10.2
-- Found PyQt4 version: 4.7.3
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PYTHON_LIBRARY
...
view (14 lines)
Plain Text, pasted on Jun 1:
1
2
3
4
5
> install.packages("rgdal",dependencies=TRUE)
Warning in install.packages("rgdal", dependencies = TRUE) :
  argument 'lib' is missing: using '/home/bob/R/x86_64-pc-linux-gnu-library/2.10'
trying URL 'http://cran.cnr.Berkeley.edu/src/contrib/rgdal_0.6-27.tar.gz'
Content type 'application/x-gzip' length 1417523 bytes (1.4 Mb)
...
view (30 lines)
Plain Text, pasted on Jun 1:
1
2
3
4
5
-- Installing: /tmp/buildd/qgis-1.5.0/debian/tmp/usr/share/qgis/python/plugins/osm/map_tools/__init__.py
-- Installing: /tmp/buildd/qgis-1.5.0/debian/tmp/usr/share/qgis/python/plugins/osm/map_tools/OsmMoveMT.py
-- Installing: /tmp/buildd/qgis-1.5.0/debian/tmp/usr/share/qgis/python/plugins/osm/styles/medium_scale.style
-- Installing: /tmp/buildd/qgis-1.5.0/debian/tmp/usr/share/qgis/python/plugins/osm/styles/big_scale.style
-- Installing: /tmp/buildd/qgis-1.5.0/debian/tmp/usr/share/qgis/python/plugins/osm/styles/small_scale.style
...
view (27 lines)
C, pasted on May 24:
1
2
3
4
5
/* Exercise 1-22.
 *
 * Write a program to ``fold'' long input lines into two or more shorter
 * lines after the last non-blank character that occurs before the n-th column
 * of input. Make sure your program does something intelligent with very long
...
view (121 lines)
C, pasted on May 24:
1
2
3
4
5
/* Exercise 1-22.
 *
 * Write a program to ``fold'' long input lines into two or more shorter
 * lines after the last non-blank character that occurs before the n-th column
 * of input. Make sure your program does something intelligent with very long
...
view (121 lines)
Plain Text, pasted on May 24:
1
2
3
4
5
"
" Add this to your ~/.vim/plugin/ directory. Then you can use
"
" :CPPaste
"     to send the current buffer to codepad.org and open your pasted code
...
view (75 lines)
Plain Text, pasted on May 24:
1
2
3
4
5
" Vim global plugin that provides access to the codepad.org pastebin.
" Requires +python support.
"
" Customized for project paste at http://osgeo.codepad.org
" by Mateusz Loskot <mateusz@loskot.net>
...
view (80 lines)
Plain Text, pasted on May 24:
1
2
3
4
5
" Vim global plugin that provides access to the codepad.org pastebin.
" Requires +python support.
"
" Customized for project paste at http://osgeo.codepad.org
" by Mateusz Loskot <mateusz@loskot.net>
...
view (85 lines)
Plain Text, pasted on May 24:
1
2
3
4
5
" Vim global plugin that provides access to the codepad.org pastebin.
" Requires +python support.
"
" Customized for project paste at http://osgeo.codepad.org
" by Mateusz Loskot <mateusz@loskot.net>
...
view (85 lines)
Plain Text, pasted on May 24:
1
2
3
4
5
" Vim global plugin that provides access to the codepad.org pastebin.
" Requires +python support.
" Add this to your ~/.vim/plugin/ directory. Then you can use
"
" :CPPaste
...
view (81 lines)
Plain Text, pasted on May 7:
1
2
3
4
5
Process:         qgis [55774]
Path:            /Applications/qgis1.4.0.app/Contents/MacOS/qgis
Identifier:      org.qgis.qgis
Version:         1.4.0-Trunk (12144M) (1.4.0-Trunk (12144M))
Code Type:       X86-64 (Native)
...
view (387 lines)
PHP, pasted on Apr 29:
1
2
3
4
5
<?
        $lon = (500 / 100) * 180.0;
        $lat = (400 / 100) * 180.0;

        $lat = 180 / math.pi * (2 * math.atan( math.exp( lat * math.pi / 180.0)) - math.pi / 2.0);
...
view (7 lines, 3 lines of output)
PHP, pasted on Apr 29:
1
2
3
4
5
<?
        lon = (500 / 100) * 180.0;
        lat = (400 / 100) * 180.0;

        lat = 180 / math.pi * (2 * math.atan( math.exp( lat * math.pi / 180.0)) - math.pi / 2.0);
...
view (7 lines, 2 lines of output)