Kaltxì, Guest! Why don't you join our community?
Learn Na'vi Community
May 24, 2013, 04:44:44 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Paul Frommer's
Language Workbook
News: Avatar here on Earth: The Brazilian military forcing indigenous people from their land for the benefit of giant corporations. Read about the latest from the Amazon...
 
   Home   Donate Rules Gallery Login Register  
Pages: 1 [2] 3 4 5 6 ... 30   Go Down
  Print  
Author Topic: VrrtepCLI  (Read 7969 times)
0 Members and 1 Guest are viewing this topic.
Swoka Ikran
Palulukan Makto
*****
*

Karma: 29
Offline Offline

United States United States

ToS Username: Swoka Ikran
Posts: 1619



« Reply #15 on: May 23, 2011, 12:29:31 am »

how is the IPA not screwed now?

It's still broken. The IPA issue doesn't appear correctable AFAIK. If I make the required unicode() change, Python crashes. Not sure why, but it has something to do with the actual IPA data itself...

Here's your 1.8 with the Scramble/Quiz/Rhyme modules fixed: http://swokaikran.skxawng.lu/files/vrrtepcli_win_modfix.zip

Please do say how you did that?

Look up Py2EXE. Smiley It turns the program into an EXE and several support files.

Here's the above fixed version compiled with Py2EXE. Functionally identical to above, but doesn't need a Python installation. Install and use like the regular version: http://swokaikran.skxawng.lu/files/vcli_nopython.zip

EDIT: @TA: If you downloaded the above files, download them again, rutxe. I uploaded the wrong version... Embarrassed (Sorry, almost 2am...and I've been up since 8am...)
« Last Edit: May 23, 2011, 12:39:13 am by Swoka Ikran » Logged

2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise
Tirea Aean
Olo'eyktan
Palulukan Makto
*****
*
*

Karma: 154
Offline Offline

United States United States

ToS Username: Tirea Aean
Posts: 7329


and whatnot and stuff.


WWW
« Reply #16 on: May 23, 2011, 12:38:12 am »

ah sweet! Nìmun irayo. though the IPA is shot on windows, I guess that's not a super HUGE deal considering most people around here never read the IPA in the actual dictionary. and also, even less people read it and perfect their pronunciation skills for the sake of actually speaking to other people. it's all writing these days I guess.
Logged

Oe lu tirea aean, ulte lu oeru eana tirea.
Na'vi Grammar Made Simple at tirea.learnnavi.org
Quote
Can't help helpin'
Swoka Ikran
Palulukan Makto
*****
*

Karma: 29
Offline Offline

United States United States

ToS Username: Swoka Ikran
Posts: 1619



« Reply #17 on: May 23, 2011, 12:44:21 am »

ah sweet! Nìmun irayo. though the IPA is shot on windows, I guess that's not a super HUGE deal considering most people around here never read the IPA in the actual dictionary. and also, even less people read it and perfect their pronunciation skills for the sake of actually speaking to other people. it's all writing these days I guess.
You're welcome. As for writing, sran, a lot of us nulnew pamrel sivi nìNa'vi, ulte ke plltxe nìNa'vi...

Also, be sure to note the edit to my last post. I had to reupload them...my first upload was a debug version that was missing a fix in the <infix> code...
Logged

2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise
Tirea Aean
Olo'eyktan
Palulukan Makto
*****
*
*

Karma: 154
Offline Offline

United States United States

ToS Username: Tirea Aean
Posts: 7329


and whatnot and stuff.


WWW
« Reply #18 on: May 23, 2011, 12:47:07 am »

I noticed a "demoncli" file. what is that?

EDIT: it's an exe. but when I run it, it flashes a terminal super fast. before installing, it asked where meta and local are. that means running that exe file ran the vrrtepcli.py file. but in doing so, cmd kinda just openclosed. weird.
« Last Edit: May 23, 2011, 12:58:30 am by Tirea Aean » Logged

Oe lu tirea aean, ulte lu oeru eana tirea.
Na'vi Grammar Made Simple at tirea.learnnavi.org
Quote
Can't help helpin'
Swoka Ikran
Palulukan Makto
*****
*

Karma: 29
Offline Offline

United States United States

ToS Username: Swoka Ikran
Posts: 1619



« Reply #19 on: May 23, 2011, 12:57:35 am »

I noticed a "demoncli" file. what is that?
That's the vrrtepcli.py compiled to an EXE...I had to rename it.

On Windows, if there's a CMD and an EXE with the same name in the same folder (e.g. vrrtepcli.cmd and vrrtepcli.exe), the EXE takes priority and the CMD is ignored.

Since there is a vrrtepcli.cmd (the Windows equivalent of vrrtepcli.sh), I could not name the EXE vrrtepcli.exe. If I did, the updater and help would be broken.

I'm gonna go get some sleep now...if you find any more bugs, let me know and I'll fix them in the morning. Smiley
Logged

2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise
Tirea Aean
Olo'eyktan
Palulukan Makto
*****
*
*

Karma: 154
Offline Offline

United States United States

ToS Username: Tirea Aean
Posts: 7329


and whatnot and stuff.


WWW
« Reply #20 on: May 23, 2011, 01:29:03 am »

sourcecode website as posted in post 1 updated. Let the downloading and bug reporting begin.
Logged

Oe lu tirea aean, ulte lu oeru eana tirea.
Na'vi Grammar Made Simple at tirea.learnnavi.org
Quote
Can't help helpin'
Sіr. Ηaxalot
Palulukan Makto
*****

Karma: 45
Offline Offline

Sweden Sweden

Posts: 1307

¯\_(ツ)_/¯


« Reply #21 on: May 23, 2011, 01:30:00 am »

May I suggest installing it in %APPDATA% or %PROGRAMFILES%, depending on if it's supposed to be visible to the user or not? I consider putting data/applications directly in the user directory as a bit of an ugly hack.
Logged
Tirea Aean
Olo'eyktan
Palulukan Makto
*****
*
*

Karma: 154
Offline Offline

United States United States

ToS Username: Tirea Aean
Posts: 7329


and whatnot and stuff.


WWW
« Reply #22 on: May 23, 2011, 01:31:54 am »

Perhaps in Windows it is. On linux apparently it is not uncommon for a program to make a hidden file in the home directory. Though I see your point. the convention for Windows is generally to install everything to \Program Files\

EDIT: Oh. yeah, the stuff in that file don't need to be visible to the user after installation. Perhaps some tweaks to the windows versions to install everything to %APPDATA% is in order.
« Last Edit: May 23, 2011, 01:35:17 am by Tirea Aean » Logged

Oe lu tirea aean, ulte lu oeru eana tirea.
Na'vi Grammar Made Simple at tirea.learnnavi.org
Quote
Can't help helpin'
Swoka Ikran
Palulukan Makto
*****
*

Karma: 29
Offline Offline

United States United States

ToS Username: Swoka Ikran
Posts: 1619



« Reply #23 on: May 23, 2011, 02:00:19 am »

Perhaps in Windows it is. On linux apparently it is not uncommon for a program to make a hidden file in the home directory. Though I see your point. the convention for Windows is generally to install everything to \Program Files\

EDIT: Oh. yeah, the stuff in that file don't need to be visible to the user after installation. Perhaps some tweaks to the windows versions to install everything to %APPDATA% is in order.
Well...I thought I was going to bed, but now I'm watching Mythbusters...

Anyway, the reason I originally put the app in %userprofile%\.vrrtepcli on Windows is because doing this means it works on both Linux and Windows without requiring any changes. Using different folders requires OS and folder detection code.

I'll look at it tomorrow.
« Last Edit: May 23, 2011, 02:05:28 am by Swoka Ikran » Logged

2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise
Sіr. Ηaxalot
Palulukan Makto
*****

Karma: 45
Offline Offline

Sweden Sweden

Posts: 1307

¯\_(ツ)_/¯


« Reply #24 on: May 23, 2011, 06:32:41 am »

Perhaps in Windows it is. On linux apparently it is not uncommon for a program to make a hidden file in the home directory. Though I see your point. the convention for Windows is generally to install everything to \Program Files\

EDIT: Oh. yeah, the stuff in that file don't need to be visible to the user after installation. Perhaps some tweaks to the windows versions to install everything to %APPDATA% is in order.
Well...I thought I was going to bed, but now I'm watching Mythbusters...

Anyway, the reason I originally put the app in %userprofile%\.vrrtepcli on Windows is because doing this means it works on both Linux and Windows without requiring any changes. Using different folders requires OS and folder detection code.

I'll look at it tomorrow.


The thing is that the dot doesn't hide the folder in Windows and I thought that since the use of %userprofile% only applies for the windows version anyway, it wouldn't be much of a problem to change?
Logged
Swoka Ikran
Palulukan Makto
*****
*

Karma: 29
Offline Offline

United States United States

ToS Username: Swoka Ikran
Posts: 1619



« Reply #25 on: May 23, 2011, 01:37:56 pm »

The thing is that the dot doesn't hide the folder in Windows and I thought that since the use of %userprofile% only applies for the windows version anyway, it wouldn't be much of a problem to change?
VrrtepCLI references its resource files by absolute path right now:
os.path.expanduser('~')+"/.vrrtepcli/metaWords.txt"

I've found a way to make it not care about location: os.path.expanduser() could possibly be replaced with sys.path[0], but I need someone on Linux to verify sys.path[0] works (because some places say yes, others say no).

Can someone run this on Linux or Mac please? I need to see if sys.path[0] works on it. Copy and save it as a .py (anywhere you like), then run from terminal.
Code:
#!/usr/bin/python
import sys
print sys.path[0]
You should get the folder where the script is located as the output. If you don't...not good.

Also, just as an aside: A lot of other cross-platform programs also use %userprofile%\.appname folders for data on Windows, so, IMO, using %userprofile%\.vrrtepcli isn't that big of a deal.
Logged

2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise
Tirea Aean
Olo'eyktan
Palulukan Makto
*****
*
*

Karma: 154
Offline Offline

United States United States

ToS Username: Tirea Aean
Posts: 7329


and whatnot and stuff.


WWW
« Reply #26 on: May 23, 2011, 02:07:36 pm »

sys.path[0] on linux is the empty string.

Logged

Oe lu tirea aean, ulte lu oeru eana tirea.
Na'vi Grammar Made Simple at tirea.learnnavi.org
Quote
Can't help helpin'
Swoka Ikran
Palulukan Makto
*****
*

Karma: 29
Offline Offline

United States United States

ToS Username: Swoka Ikran
Posts: 1619



« Reply #27 on: May 23, 2011, 02:13:25 pm »

sys.path[0] on linux is the empty string.


You ran Python interactively...it's supposed to be empty in that case. It is on Windows too.

Can you save the print command to a .py then run it from the command line (e.g. python test.py), rutxe?
Logged

2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise
Tirea Aean
Olo'eyktan
Palulukan Makto
*****
*
*

Karma: 154
Offline Offline

United States United States

ToS Username: Tirea Aean
Posts: 7329


and whatnot and stuff.


WWW
« Reply #28 on: May 23, 2011, 02:24:47 pm »

oh right. should have seen that coming. /me facepalms

tirea@ean:~$ ./test.py
/home/tirea


it works.


« Last Edit: May 23, 2011, 02:27:40 pm by Tirea Aean » Logged

Oe lu tirea aean, ulte lu oeru eana tirea.
Na'vi Grammar Made Simple at tirea.learnnavi.org
Quote
Can't help helpin'
Swoka Ikran
Palulukan Makto
*****
*

Karma: 29
Offline Offline

United States United States

ToS Username: Swoka Ikran
Posts: 1619



« Reply #29 on: May 23, 2011, 02:46:02 pm »

oh right. should have seen that coming. /me facepalms

tirea@ean:~$ ./test.py
/home/tirea


it works.
Cool. I'll go through the app and make the change...

Do you want me to modify the Windows install script to put it in %Appdata%? Only difference will be that users will need to type: cd "%appdata%\.vrrtepcli" instead of the current cd "%userprofile%\.vrrtepcli" when they open CMD.
Logged

2010 was the year of the Na'vi.Vivar 'ivong Na'vi!

 
Avatray | NWOTD Sigbars | Sacred's Sigbar Tool | My collection of Avatar merchandise
Pages: 1 [2] 3 4 5 6 ... 30   Go Up
  Print  
 
Jump to:  

Become LearnNavi's friend on Facebook Follow LearnNavi on Twitter! Watch LearnNavi's videos on YouTube

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines

Powered by SMF | SMF © 2006-2011, Simple Machines LLC | Sitemap | Site Rules

LearnNavi is not affiliated with the official Avatar website,
James Cameron, or the Twentieth Century-Fox Film Corporation.
All trademarks and servicemarks are the properties of their respective owners.
Images in the LearnNavi.org Forums and Gallery may not be used without permission.

LearnNavi Affiliates:

LearnNavi is the community to learn Na'vi, the Avatar Language
"A place where real friendships are made." -Paul Frommer

AvatarMeet | Avatar Day! | Learn Na'vi Forum | Learn Na'vi Wiki | Navilator, the Na'vi Translator | Na'viteri

Also check out the Dothraki language from Game of Thrones: Dothraki | Dictionary | Dothraki Wiki

Custom video game and anime Piano Transcriptions - professional piano arrangements!
Love a cappella? Learn more on the a cappella wiki: Map | Male a cappella groups | Female a cappella groups and more.