Giter Club home page Giter Club logo

doge's People

Contributors

algernon avatar azet avatar carolinux avatar codl avatar colons avatar courajs avatar denilsonsa avatar granitosaurus avatar h3xx avatar harkabeeparolus avatar hdevalence avatar heath123 avatar jbremer avatar jtzeng avatar kaligule avatar keithw avatar ljalonen avatar lotheac avatar lozzd avatar lwneal avatar moggers87 avatar netoneko avatar olivia5k avatar pschfr avatar richo avatar ryancw avatar tonylazarew avatar wjt avatar xe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doge's Issues

wow add osx process list

I don't really know what processes to look for in OSX. Pretty much none of the ones in the current list even exists for OSX, given that more than half is WMs for x11.

Again, I'm not an OSX user, so I don't even know what to be looking for. Additions would be very nice, such doge.

boo such valueerror

sanky@kuriputo> doge  
Traceback (most recent call last):
  File "/usr/bin/doge", line 5, in <module>
    doge.main()
  File "/usr/lib/python2.7/site-packages/doge/doge.py", line 268, in main
    shibe.setup()
  File "/usr/lib/python2.7/site-packages/doge/doge.py", line 72, in setup
    self.apply_text()
  File "/usr/lib/python2.7/site-packages/doge/doge.py", line 78, in apply_text
    real_targets = random.sample(affected, len(self.real_data))
  File "/usr/lib/python2.7/random.py", line 320, in sample
    raise ValueError("sample larger than population")
ValueError: sample larger than population
self.real_data == ['compiz', 'x86_64', 'testers_sorted', 'linux', 'sanky', 'kuriputo', 'nano']
affected == [13, 20, 5, 19, 6, 21]

pls 2 fix

SyntaxError: invalid syntax with Python 3.2.5

I get the following error when I attempt to run doge with Python 3.2.5. I'm using a fresh clone, commit fa4c46c

Traceback (most recent call last):
  File "bin/doge", line 14, in <module>
    from doge import core
  File "doge/core.py", line 285
    msg = u'{0} {1}'.format(random.choice(wow.PREFIXES), self.word)
                   ^
SyntaxError: invalid syntax

Keep the window scale

any idea to limit the window size for the text? because when i use it in the full screen the text always fill the windows

repology badge in readme

Packaging status

[![Packaging status](https://repology.org/badge/vertical-allrepos/doge.svg)](https://repology.org/project/doge/versions)

ubuntu fail. very sad.

How to install and run on a debian distro such as ubuntu?

I installed it through pip. There were no errors, but when I run doge nothing happens.

I am using uxrvt-unicode for my terminal. Attached is a screenshot.

2018-02-26-234230_1680x1050_scrot

wow such text-to-speech much help needed wow

I'm trying to integrate doge with espeak, the text to speech synthesizer.

Attempts so far:

  • doge | espeak only outputs the speech, but no doge ;(
  • doge && doge | espeak does output both doge and speech, but the speech is different from the doge text.
  • below commands doesn't display colored text and the doge ;(
OUTPUT="`doge`"
printf "${OUTPUT}"
espeak "${OUTPUT}"

Is there a way to output both the original doge and the speech of doge's output?

No exit for small screen

Hi! I'm building a package that depends Doge. I built a wrapper for the command doge that used something like the following:

from doge.core import main as doge_main

def motd():
  doge_main()

When I used a small screen, it stops the entire program, not just the function. It would be better if it just left the message to stderr, then continued on. (I can PR if you want.)

UnicodeEncodeError: 'ascii' codec can't encode characters in position 49-51: ordinal not in range(128) ()

Locale is en_US.UTF-8, python is 2.6.5

Same problem as the other one posted here, but my locale is set correctly.
It printed 1 wow

 user@host:~$ doge



                                                                             wow











Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/doge/core.py", line 396, in main
    shibe.print_doge()
  File "/usr/local/lib/python2.6/dist-packages/doge/core.py", line 245, in print_doge
    sys.stdout.write(line)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 49-51: ordinal not in range(128)
()
wow error: Unknown unicode error. 

wow add osx process recognise

wow such osx
no idea lol

< /doge>

I don't own a mac, so I don't really have the possibility to write the process identification for OSX. I've never really even used one, so I have no idea what the proc-like API looks like. It should be fairly straightforward to write something that does the same thing that the Linux implementation does, but for OSX.

If someone could help with this, that would be such cool, much doge.

I had a quick thought that ps might be utilized. But, AFAIK, the output is slightly different on OSX than on the GNU one. I'd also like to not use subprocess and do external calls to keep the program as quick as possible.

Outputs UTF-8 characters on LATIN1 terminals

Script does not do appropriate checking of terminal LC_CTYPE locale to test whether the terminal can accept UTF-8 characters. This results in corrupt output.

Suggestion: Transform strings into acceptable character set before outputting.

Steps to reproduce:

$ LANG=en_US LC_CTYPE=en_US rxvt -e bash -c 'doge;read'

OR

$ LANG=en_US LC_CTYPE=en_US xterm -e bash -c 'doge;read'

Results in:

xterm

UnicodeEncodeError: 'ascii' codec can't encode characters in position 29-30: ordinal not in range(128) with Python 2.7.5

I get the following error when I attempt to run doge with Python 2.7.5. I'm using a fresh clone, commit fa4c46c

Traceback (most recent call last):
  File "./bin/doge", line 15, in <module>
    core.main()
  File "./doge/core.py", line 366, in main
    shibe.print_doge()
  File "./doge/core.py", line 259, in print_doge
    sys.stdout.write(line)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 29-30: ordinal not in range(128)

wow error: Unknown unicode error

such traceback:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/doge/core.py", line 465, in main
    shibe.setup()
  File "/usr/lib/python3.4/site-packages/doge/core.py", line 40, in setup
    doge = self.load_doge()
  File "/usr/lib/python3.4/site-packages/doge/core.py", line 153, in load_doge
    doge_lines = [l for l in f.readlines()]
  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 29: ordinal not in range(128)

wow /usr/bin/locale:

[nemo@Jolla software]$ /usr/bin/locale
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=cs_CZ.UTF-8
LANGUAGE=
LC_CTYPE="cs_CZ.UTF-8"
LC_NUMERIC="cs_CZ.UTF-8"
LC_TIME="cs_CZ.UTF-8"
LC_COLLATE="cs_CZ.UTF-8"
LC_MONETARY="cs_CZ.UTF-8"
LC_MESSAGES="cs_CZ.UTF-8"
LC_PAPER="cs_CZ.UTF-8"
LC_NAME="cs_CZ.UTF-8"
LC_ADDRESS="cs_CZ.UTF-8"
LC_TELEPHONE="cs_CZ.UTF-8"
LC_MEASUREMENT="cs_CZ.UTF-8"
LC_IDENTIFICATION="cs_CZ.UTF-8"
LC_ALL=
``

Issues using mosh

I'm not sure if this is a glitch with mosh or with doge.py, but whenever I connect using mosh, the pretty doge is completely butchered. I've tested it using both ssh and mosh on the same terminal with identical settings, but only mosh does it.

SSH results

With SSH, it loads fine. However, with mosh...

mosh results

Nothing huge (doge doesn't make or break my terminal experience), but I figured it was worth reporting.

Apparent missing dep on argparse

No investigation has been done, this was immediately fixed with a 'pip install argparse'. This failure happened on a new Ubuntu 10.04 install. (10.04, I know...)

root@cp2014Practice:~# pip install doge
Downloading/unpacking doge
  Downloading doge-3.4.0.tar.gz
  Running setup.py egg_info for package doge
Installing collected packages: doge
  Running setup.py install for doge
    changing mode of build/scripts-2.6/doge from 644 to 755
    changing mode of /usr/local/bin/doge to 755
Successfully installed doge
root@cp2014Practice:~# doge
Traceback (most recent call last):
  File "/usr/local/bin/doge", line 14, in <module>
    from doge import core
  File "/usr/local/lib/python2.6/dist-packages/doge/core.py", line 11, in <module>
    import argparse
ImportError: No module named argparse

wow list index out of range

wow

    install doge
                      arch linux
          python 2.7
                                      wish for doge terminal

wow
                such error

(venv-doge)[nicd@nytsoi srv]$ doge
Traceback (most recent call last):
  File "/srv/venv-doge/bin/doge", line 5, in <module>
    doge.main()
  File "/srv/venv-doge/lib/python2.7/site-packages/doge/doge.py", line 276, in main
    shibe.setup()
  File "/srv/venv-doge/lib/python2.7/site-packages/doge/doge.py", line 71, in setup
    self.get_real_data()
  File "/srv/venv-doge/lib/python2.7/site-packages/doge/doge.py", line 117, in get_real_data
    self.real_data.append(random.choice(list(files)))  # wow so many file
  File "/usr/lib/python2.7/random.py", line 274, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
IndexError: list index out of range

                                                    no doge terminal :(

such empty $HOME
            cause error
                                                  sad doge
        wow

touch ~/foo
                such doge!
                            such color!
         now doge terminal

such traceback, so ascii

[arthurdent@gibson ~]$ doge                 
Traceback (most recent call last):
  File "/usr/bin/doge", line 5, in <module>
    doge.main()
  File "/usr/lib/python3.3/site-packages/doge/doge.py", line 303, in main
    shibe.setup()
  File "/usr/lib/python3.3/site-packages/doge/doge.py", line 68, in setup
    doge = self.load_doge()
  File "/usr/lib/python3.3/site-packages/doge/doge.py", line 116, in load_doge
    return f.readlines()
  File "/usr/lib/python3.3/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 29: ordinal not in range(128)

accept words as input

it'd be cool if the program displayed whatever words we pass to it

thank you doge

doge depends on argparse

Doge works on python2.6 except that it doesn't necessarily install its dependency, in argparse.

wow use api for getting terminal size

Topic.

The current method of calling stty size is mostly a lazy workaround. It would be much nicer (and such wow) if we could use a curses module or whatnot to get that termcap information.

wow add wm detection

Add window manager detection into the dynamic data. Could possibly look at Archey or similar screenshot info script to get an idea of how to get that easily.

not enough wow

I often get a run of doge from the terminal not outputting any stand-alone 'wow's, which is from what I understand, a cornerstone of this meme.

Please rectify this issue ASAP, every run should output one or more stand-alone 'wow'

chrome os:

How to i do it on chrome os? Chrome OS is a mix of Debian, Ubuntu, and etc. I tried sudo -H but it did not work

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.