LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 07-14-2008, 01:36 PM   #781
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Favorites and color optional features committed to svn


I don't see a problem with checking the code in early. I hate waiting for All-Star break to pass.

I've checked the favorite and color optional features into svn (Revision 86)

Those who don't like or would prefer not to use those features, please test the new svn without configuring those features and confirm I didn't break anything.

For those who have responded favorably to the new features, here's the snippet from the README that describes the new config file options:

Quote:

favorite = x (team to highlight in listings using codes above, specify multiple favorite= lines if you have more than one favorite team you'd like to highlight)

use_color = True/False (if this is set, either default colors, currently cyan
on black, or colors of your choosing will highlight teams specified in favorite;
if set to false or absent from config, favorite highlighting defaults to
underlining)

fg_color = x (the foreground color for favorite highlighting)

bg_color = x (the background color for favorite highlighting)

Valid color choices are:
'black', 'white', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan'

If an invalid color is specified, color is disabled and favorite highlighting
defaults to underlining.

If favorite is configured, use_color, bg_color, and fg_color are optional and
will highlighting defaults to underline. If use_color is set to True, fg_color
and bg_color are optional, and highlighting will default to cyan on black. If
only one of fg_color or bg_color is specified, the other will take on the
default value.
 
Old 07-14-2008, 08:12 PM   #782
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Home Run Derby

Not sure if this is going to reach anyone in time, but it will probably work for archives too.

The stream ID is 766401 for 800k and 766403 for 400k. Use mlbgameid.py to watch it.

Code:
test/mlbgameid.py 766401
Enjoy!
 
Old 07-15-2008, 01:22 PM   #783
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
i got some problem with mplayer.

my config is:

Code:
video_player=xterm -e mplayer -cache 2048 -quiet
#video_player=mplayer -cache 2048 -quiet %s > /tmp/mplayer-cg.log
#video_player=vlc %s > /tmp/mlb.log
(tried all three options)

i can't get any log. it seems that the video_player line is totally ignored.

"url received" is ok. if i take it from "log" and i manually put it on mplayer, i can watch the condensed.

everything is ok when i watch live/archived games.

what's wrong? :/
 
Old 07-15-2008, 01:31 PM   #784
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
what about BOLD instead of UNDERLINE when colors are disabled?
 
Old 07-15-2008, 01:36 PM   #785
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
SOLVED:

Just missed "Top_Plays_Player" config option. I put "xterm -e mplayer -cache 2048 -quiet" on it, and everything now it's ok.

:O
 
Old 07-15-2008, 02:54 PM   #786
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by lephio View Post
SOLVED:

Just missed "Top_Plays_Player" config option. I put "xterm -e mplayer -cache 2048 -quiet" on it, and everything now it's ok.

:O
Hmm. I'll look into this. Top_plays_player should be optional and default to video_player if it's absent. However, one nice thing about keeping them separate is that you can define different buffer values for condensed vs. regular games since condensed is always 400k but regular games can be 400k or 800k.
 
Old 07-15-2008, 02:55 PM   #787
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by lephio View Post
what about BOLD instead of UNDERLINE when colors are disabled?
BOLD is already used for 'In Progress' games.
 
Old 07-15-2008, 03:03 PM   #788
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by daftcat View Post
Hmm. I'll look into this. Top_plays_player should be optional and default to video_player if it's absent. However, one nice thing about keeping them separate is that you can define different buffer values for condensed vs. regular games since condensed is always 400k but regular games can be 400k or 800k.
Sure enough, I was missing the logic to make top_plays_player optional.

EDIT: Or rather, I was missing the logic to use video_player if top_plays_player was absent.

Fixed and checked into svn.

Last edited by daftcat; 07-15-2008 at 03:04 PM.
 
Old 07-15-2008, 03:12 PM   #789
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
By the way, all you guys who use this and give me feedback...

YOU ROCK!

It helps to have an appreciative user base, but I thought it would also be nice to let you know that appreciation flows both ways.

Stay tuned. I have some awesome new features in the works. And for those of you who like mlbviewer because it's simple, don't worry, I'll take care of you guys too.
 
Old 07-15-2008, 03:59 PM   #790
lephio
Member
 
Registered: Jun 2008
Posts: 46

Rep: Reputation: 15
no daft.. YOU rock! that's the best linux application for an MLB fan!!!

it would be great if we grow a little community of linux-and-baseball users! what about making an offical site/blog for mlbviewer/milbviewer/and-any-other-baseball-app-for-linux?

i can provide a two-minute wordpress and/or phpbb platform on my server, if some people want to write down something..
 
Old 07-15-2008, 06:40 PM   #791
dmandell
Member
 
Registered: Apr 2008
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by daftcat View Post
Ooooh! Aaaah! I tested it and it looks sharp. But I'm going to have to wait until after the All-Star break to fully test it (e.g. to see what happens with 'In Progress' games.) No games today or Wednesday and the All-Star game is National Blackout. Thursday will likely be the first day I can test it with an 'In Progress' game.
Just updated to latest SVN, it looks REALLY good. You did fantastic work with this latest feature.

Thanks for all of the continued improvements, if only MLB's own product was half as good as this one.

d
 
Old 07-17-2008, 12:25 AM   #792
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Quote:
Originally Posted by lephio View Post
no daft.. YOU rock! that's the best linux application for an MLB fan!!!

it would be great if we grow a little community of linux-and-baseball users! what about making an offical site/blog for mlbviewer/milbviewer/and-any-other-baseball-app-for-linux?

i can provide a two-minute wordpress and/or phpbb platform on my server, if some people want to write down something..
I don't need the extra attention and this thread is actually the first hit on Google. But you guys are welcome to use the discussion forums on the mlbviewer sourceforge site: http://sourceforge.net/projects/mlbviewer

Now that I've figured out how to subscribe to sourceforge threads (and realized a couple of folks were already having some conversations in the forums), it might be easier for new folks to come to a real forum rather than a mammoth thread. It's up to you guys. I'll respond in either forum so long as the notifications are working properly.

You guys can even talk baseball (*gasp* what a concept!) in those forums.
 
Old 07-18-2008, 05:55 AM   #793
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Bookmarks!!!

I promised you an awesome new feature and here it is.

From the README:

Quote:

BOOKMARKS

Do you remember what day Bonds hit 756? Do you remember what day Griffey hit
600? Do you remember what day the Angels no-hit the Dodgers and lost? Now
you don't have to. Simply highlight a game, press 'm' to mark it, and give it
a title. The video, audio, and condensed game (if available) will be added
to your bookmarks file in $HOME/.mlb/bookmarks.pf. To view your bookmarks, press the 'b' key. To watch or listen to a bookmarked game, use the Enter or 'a' keys respectively (just like a regular listing.) To delete a bookmark, press 'x' or
Backspace and confirm the deletion. You should refresh your bookmarks view
after you've deleted a bookmark by pressing 'b' again. If bookmarks list is
bigger than the window size, a --More-- dialog will appear at the bottom. You
can use the Spacebar to move to the next page of bookmarks. If there are no
more bookmarks to view, an --End-- dialog will appear.

This is a new feature bound to have bugs. Please submit bug reports either
to the LinuxQuestions.org thread or to the Sourceforge discussion forums.
Update your svn and give it some good testing. There are some funny quirks to it that I will fix another time.

Funny quirks I know of:
  • Paging (more bookmarks than screen lines) is a hack. I should really implement proper scrolling using curses, but I wanted to get something working tonight
  • Top Plays is not supported for Bookmarks (but Condensed Games are)
  • Deleting a bookmark from a paged view updates the current page, but doesn't pull new lines from the next page
  • Can't go backwards in paging
  • Have to press 'y'<enter> instead of just 'y' to confirm a delete
  • Can't re-order your bookmarks, the order you enter them is the order they'll stay in
  • Bookmark file is not meant for human reading or editing
  • Bookmark is a snapshot in time, a dump of the listing for that game, bookmark the game before the CG is available and the bookmark will never contain the CG information. Bookmark an 'In Progress' game, and you'll get to watch it later as an Archived game but the Status will always read 'In Progress'
  • In the same way, speed switching in your bookmarks view is not supported. Whatever speed you were configured for when you bookmarked the game is the speed you'll get when you watch it later.

Probably more....

Some of these will likely get fixed eventually like scrolling while others you'll likely have to live with like readability/writeability of the bookmarks file.

Last edited by daftcat; 07-18-2008 at 06:00 AM.
 
Old 07-18-2008, 05:56 AM   #794
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
For those of you who are distrustful of new features, please update your svn anyway and make sure I didn't break anything.
 
Old 07-18-2008, 07:25 PM   #795
daftcat
mlbviewer Maintainer
 
Registered: Apr 2008
Posts: 1,745

Rep: Reputation: 76
Teaser

http://www.eds.org/~straycat/bookmarks.jpg

(No, I didn't change it to yellow. That's my default color scheme. Easier on the eyes than white on black. )
 
  


Reply

Tags
help, install, installation, instructions, seek, vlc, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mlb.com gameday audio stream statmobile Linux - Newbie 6 05-06-2008 10:16 PM
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM


All times are GMT -5. The time now is 08:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration