olivia5k / doge Goto Github PK
View Code? Open in Web Editor NEWwow very terminal doge
Home Page: https://pypi.python.org/pypi/doge/
License: MIT License
wow very terminal doge
Home Page: https://pypi.python.org/pypi/doge/
License: MIT License
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.
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
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
see screenshot:
http://i.imgur.com/3Vp80o1.png
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
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.OUTPUT="`doge`"
printf "${OUTPUT}"
espeak "${OUTPUT}"
Is there a way to output both the original doge and the speech of doge's output?
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.)
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 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.
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:
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)
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=
``
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.
With SSH, it loads fine. However, with mosh...
Nothing huge (doge doesn't make or break my terminal experience), but I figured it was worth reporting.
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
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
[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)
it'd be cool if the program displayed whatever words we pass to it
thank you doge
Doge works on python2.6 except that it doesn't necessarily install its dependency, in argparse
.
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.
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.
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'
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.