Skip to content

Instantly share code, notes, and snippets.

View montreal91's full-sized avatar
💭
Set your status

Alexander Nefedov montreal91

💭
Set your status
  • Belgrade, Serbia
View GitHub Profile
#ifndef __TEXTURE_HOLDER_H__
#define __TEXTURE_HOLDER_H__
#include <cassert>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
import socket
class MyServer( object ):
"""docstring for MyServer"""
def __init__( self ):
super( MyServer, self ).__init__()
self.HOST = ""
self.PORT = 50007
import javax.swing.*;
import java.awt.*;
import java.util.List;
import java.util.ArrayList;
import java.awt.geom.*;
import java.awt.image.BufferedImage;
public class DemoViewer {
public static void main(String[] args) {
sudo dpkg -i panda3d1.10_1.10.0_amd64.deb
Selecting previously unselected package panda3d1.10.
(Reading database ... 202410 files and directories currently installed.)
Preparing to unpack panda3d1.10_1.10.0_amd64.deb ...
Unpacking panda3d1.10 (1.10.0) ...
dpkg: dependency problems prevent configuration of panda3d1.10:
panda3d1.10 depends on python-pmw; however:
Package python-pmw is not installed.
dpkg: error processing package panda3d1.10 (--install):
$ apt search python-pmw
Sorting... Done
Full Text Search... Done
python-pmw/stable 1.3.2-6 all
Pmw -- Python MegaWidgets
python-pmw-doc/stable 1.3.2-6 all
Pmw -- Python MegaWidgets
montreal@magnetar:~/Programming/sources/panda$ sudo apt-get install python-pmw
montreal@magnetar:~/Programming/sources/panda$ sudo apt-get update
[sudo] password for montreal:
Ign http://packages.linuxmint.com debian InRelease
Hit http://ftp.us.debian.org jessie InRelease
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:2 http://packages.linuxmint.com debian Release.gpg [198 B]
Get:3 http://ftp.us.debian.org jessie-updates InRelease [123 kB]
Get:4 http://packages.linuxmint.com debian Release [16.7 kB]
Get:5 http://security.debian.org jessie/updates/main Sources [80.4 kB]
Get:6 http://packages.linuxmint.com debian/import amd64 Packages [55.7 kB]
montreal@magnetar:~/Programming/sources/panda$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
blt python-pmw python-tk tk8.6-blt2.5
Suggested packages:
blt-demo python-pmw-doc tix python-tk-dbg
The following NEW packages will be installed:
Version: 1.10.0
Using Python 2.7
Target arch: x86_64
WARNING: Could not locate thirdparty package artoolkit, excluding from build
WARNING: Could not locate thirdparty package fcollada, excluding from build
WARNING: Could not locate thirdparty package assimp, excluding from build
WARNING: Could not locate thirdparty package ffmpeg, excluding from build
WARNING: Could not locate thirdparty package swscale, excluding from build
WARNING: Could not locate thirdparty package swresample, excluding from build
WARNING: Could not locate thirdparty package fftw, excluding from build
@montreal91
montreal91 / panda_game_client.py
Created August 16, 2015 21:52
panda_game_client
## Output
False
'gui'
'__pycache__'
'data'
'client_socket.pyc'
'FreeMono.ttf'
'panda_game_client.py'
'client_socket.py'
'client_game.py'
@montreal91
montreal91 / gist:5e4741483d1d51e7bbff
Created August 16, 2015 21:59
full font error message
:pnmtext(error): Unable to find font file /home/montreal/Programming/projects/altruistic_alligator/client/FreeMono.ttf
Traceback (most recent call last):
File "panda_game_client.py", line 37, in <module>
game = XGameClient()
File "panda_game_client.py", line 23, in __init__
font = self.loader.loadFont( "/home/montreal/Programming/projects/altruistic_alligator/client/FreeMono.ttf" )
File "/usr/share/panda3d/direct/showbase/Loader.py", line 506, in loadFont
raise IOError, message
IOError: Could not load font file: /home/montreal/Programming/projects/altruistic_alligator/client/FreeMono.ttf