euglug.org

[카테고리:] Uncategorized

  • [Eug-lug] PSP hacks wanted



    fleming.j at comcast.netWed Mar 30 17:33:00 PST 2005

    "CPU 333mhz
    4M ram
    I'm surprised that it can run the caliber of games that is shown on the demo 
    reel and other footage I have seen. 333mhz is one thing but  doing graphics with 
    4M ram,  even with the 166mhz gpu with 2 more M ram. Maybe it looks different in 
    person "
    
    This is what I found:
    # CPU: PSP CPU (System clock frequency 1~333MHz)
    # Main Memory: 32MB
    # Embedded DRAM: 4MB
    That looks more like it
     
    >From what I can tell, it will run "games" from the UMD, or memory stick
    I wanna seem some games like:
    "surf the web!"
    "check your email"
    "slashdot ticker"
    "instant messanger"
    and one of my personal favs: "Secure Shell"
    
    And I have to agree with Jamie on the games Id like to see.
                                                                                                   John
    
  • [Eug-lug] DIY Laptop site



    larry priceWed Mar 30 17:22:38 PST 2005

    Found thru gizmodo via del.icio.us
    http://www.coboc.com/diy/Config.asp?Section=10001
    
    Looks like they're aiming for the people who want to plug their lappies together
    
    So if you are looking to build a complete laptop from the ground up...
    
    They don't have a linux compatibility guide yet, but the barebooks on
    offer look fairly generic... and you don't have to buy all the parts
    from them either...
    
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] I want my minty PDA!!!!



    fleming.j at comcast.netWed Mar 30 17:14:39 PST 2005

    After seeing the minty mp3 page, psp hacks wanted and the embedded linux devicees. I started wondering how soon we will see home brew (from the PCB up, and kits) PDA/PocketPC devices. It looks like there will be a plethora of premade devices with all sorts of capabilities like the psp and ds etc, and they look prcy but there are lots of versions of touch screens to gadgets already out as well.
                                                                                                                         John
    
  • [Eug-lug] psp hacks wanted!



    fleming.j at comcast.netWed Mar 30 17:01:20 PST 2005

    CPU 333mhz
    4M ram
    I'm surprised that it can run the caliber of games that is shown on the demo reel and other footage I have seen. 333mhz is one thing but  doing graphics with 4M ram,  even with the 166mhz gpu with 2 more M ram. Maybe it looks different in person
                                                                                             John
    
    
    > On Wednesday 30 March 2005 12:59 am, T. Joseph CARTER wrote:
    > : On Tue, Mar 29, 2005 at 02:08:29PM -0800, Linux Rocks! wrote:
    > : > So, I did it, I went and got one of those silly little Sony PSP
    > : > devices...
    > :
    > : Isn't that just a totally bad-ass screen for a portable device at its
    > : price-point?  =D
    > 
    > It is a very nice screen. and it seems like a well designed peice (ergonomicly 
    > speaking).
    > 
    > Ive been doing a lot of reading online (various forums mostly), and Ive read 
    > that sony does have a SDK, but its $25,000. Ive also read that there are 
    > devices being designed for it (neet things, like tv tuner, keyboard, ...)
    > 
    > The hardware specs are pretty sweet, it really just needs apps to take 
    > advantage of it...
    > 
    > CPU 333mhz
    > 4M ram
    > wifi
    > IR
    > Memory Stick (duo, extra expensive...)
    > UMD (simular to mini-dvd, holds 1.8gb, proprietary)
    > Many buttons, and a joystick for input (could use a touch screen....)
    > Stereo Sound
    > USB (I think this is really only works for putting stuff on the memory 
    > stick...)
    > The video has its own 166MHZ cpu, and 2 M ram
    > and ofcourse a sweet 4.3" 16:9 Display
    > 
    > From what I can tell, it will run "games" from the UMD, or memory stick
    > I wanna seem some games like:
    > "surf the web!"
    > "check your email"
    > "slashdot ticker"
    > "instant messanger"
    > and one of my personal favs: "Secure Shell"
    > 
    > 
    > Ive also read that the memory sticks with "magic gate" have some sort of copy 
    > protection mechanism, I wonder how that works, and if it prevents non-sony 
    > programs from being run on these cards?
    > 
    > BTW, another web browser is already in the works, it will be released with the 
    > korean debut... hopefully there will be a download after its released...
    > 
    > Jamie
    > 
    > :
    > :
    > : Short form:  The processor is MIPS, and probably whatever exploit has been
    > : used to use the memory card to bypass the SCEA license on the discs has
    > : been fixed.  A new one must be found.  Once that happens, probably a Linux
    > : disc booted from memory stick will happen, and hopefully, more usefully, a
    > : smaller framework designed to stay out of your way as much as possible for
    > : writing games in your basement if you want to..
    > :
    > : _______________________________________________
    > : EUGLUG mailing list
    > : euglug at euglug.org
    > : http://www.euglug.org/mailman/listinfo/euglug
    > 
    > -- 
    > People disagree with me.  I just ignore them.
    > 	-- Linus Torvalds, regarding the use of C++ for the Linux kernel
    > 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    
  • [Eug-lug] Unix ‘time’ command



    Jim BeardWed Mar 30 15:12:03 PST 2005

    Larry for the win!!!
    
    Thanks,
    Jim
    
    On Mar 30, 2005, at 2:38 PM, larry price wrote:
    
    > You are using the shell builtin time rather than the time command
    >
    > use
    >
    > which time #prints a path to the time command
    > /usr/bin/time -o foo.txt ls #using the full path ensures you are using
    > the command
    > cat foo.txt
    >
    >
    >
    >
    >
    > On Wed, 30 Mar 2005 14:37:50 -0800, Jim Beard <beard at counterclaim.com> 
    > wrote:
    >> Howdy folks,
    >>
    >>         It's time for my bi-weekly simple(for some!) unix/linux 
    >> question!  I'm
    >> working on a shell script to automate some back ups using rsync.  I
    >> would like to know how long the rsync process takes to complete.  In
    >> order to do this I was hoping to execute the command with 'time' and
    >> then capture time's output.  The problem is that any output 
    >> redirection
    >> I append to the command (like ' > logfile.txt' gets applied to the
    >> command, and not to time.  Time supposedly has an option for this, but
    >> I have likewise not been able to get this to execute correctly.
    >>
    >> I've tried:
    >>
    >> time -o test.txt ls
    >> bash: -o: command not found
    >>
    >> real    0m0.002s
    >> user    0m0.000s
    >> sys     0m0.000s
    >>
    >> and
    >>
    >> time ls -o test.txt
    >> ls: test.txt: No such file or directory
    >>
    >> real    0m0.009s
    >> user    0m0.000s
    >> sys     0m0.010s
    >>
    >> along with similar variations including >'s and 2>'s and 2>&1's all
    >> sprinkled about.  Does anyone have any experience with this?
    >>
    >> Jim Beard
    >> counterclaim.com, Inc
    >> http://www.counterclaim.com
    >> http://openefm.sourceforge.net
    >> (800) 264-8145
    >>
    >> _______________________________________________
    >> EUGLUG mailing list
    >> euglug at euglug.org
    >> http://www.euglug.org/mailman/listinfo/euglug
    >>
    >
    >
    > -- 
    > http://Zoneverte.org -- information explained
    > Do you know what your IT infrastructure does?
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    >
    >
    Jim Beard
    counterclaim.com, Inc
    http://www.counterclaim.com
    http://openefm.sourceforge.net
    (800) 264-8145
    
    
  • [Eug-lug] Unix ‘time’ command



    Allen BrownWed Mar 30 15:01:20 PST 2005

    The following does more than you are asking.  It is designed to
    make rather large updates to half a dozen sites around the
    world.  But I've trimmed out most of the sites.
    
    It tracks the size of the database it is syncing.  That info
    goes into a log file that is then rsynched to the various sites.
    
    It keeps track of how long it has been running and aborts the
    later updates if it has run to long.  The idea is that those
    sites will be updated the next day.  This works for me since
    I get significant updates once or twice a week.  In between the
    updates are rather small.
    
    As Larry pointed out, you need to use the non-builtin time
    command.  In general you should ensure that your programs are
    not replaced by functions or aliases without you intending this.
    You can ensure this by quoting the name of the command.  I have
    done this in the example below.
    
    
    # file="/home/abrown/etc/virage"
    # Allen Brown  date="20050208 13:54:44"
    
    progname=${0}
    who=<Email address deleted for posting>
    dateformat="+%Y%m%d %H:%M:%S"
    (
       echo "==================== LOG SIZE OF DATABASES. ==================="
       src=/usr/iclib/Virage
       tempfile=/tmp/viraged$$
       diskusagelog="${src}/DISKUSAGE.log"
       echo "$(\du -s "${src}"):     $(\date "${dateformat}")" > "${tempfile}"
       \cat "${tempfile}" >> "${diskusagelog}"
       \cat "${tempfile}"
       typeset -i timeacc=0 timelimit=3600
       \rm "${tempfile}"; echo ${timeacc} > "${tempfile}"
       timelimit=${timelimit}*14;    # 14 hours
       timeopts="--quiet -f %e -o ${tempfile}"
    
       function controlrsync
       {
         site="${1}"
         act="${2}"
    
         case "${act}" in
           run | RUN)
             timeacc=${timeacc}+$(\sed -e 's/\..*//' < ${tempfile})
             if [ ${timeacc} -gt ${timelimit} ]; then
               echo "This has run too long. ${timeacc}>${timelimit}"
               returns=1
             else
               echo "=============== ${site} $(\date "${dateformat}") ${timeacc}" \
                     "================"
               returns=0
             fi
             ;;
           skip | SKIP)
             echo "============ SKIPPING ${site} $(\date "${dateformat}")" \
                     "=============="
             returns=1
             ;;
           *)
             echo "${progname}: internal error." 1>&2
             returns=1
             exit 1
             ;;
         esac
         return ${returns}
       }; # controlrsync
    
       # ==========================================================================
       echo "===================== RSYNC THE VIRAGE DATABASES. ===================="
       # ==========================================================================
    
       exclude="--exclude=*~"
       rsopts="--delete -vrlHtpcz ${exclude}"
       # rdopts='-c -oremove -t 60'
       # rsopts="--dry-run ${rsopts}"; rdopts="-n ${rdopts}"; echo "*** Dummy Run ***"
    
       # --------------------------------------------------------------------------
       if controlrsync "Boise" RUN; then
         target="boi.agilent.com:/va/Libraries/Virage"
         rsyncpath="--rsync-path=/usr/local/bin/rsync"
         \time ${timeopts} \
           \rsync ${rsyncpath-} ${rsopts} ${src}/. ${target}
       fi
    
       # --------------------------------------------------------------------------
       if controlrsync "Another system" RUN; then
         target="anothersystem.agilent.com:/Libraries/Virage"
         rsyncpath="--rsync-path=/usr/local/bin/rsync"
         \time ${timeopts} \
           \rsync ${rsyncpath-} ${rsopts} ${src}/. ${target}
       fi
    
       timeacc=${timeacc}+$(\sed -e 's/\..*//' < ${tempfile})
       rm -f "${tempfile}"
    
       echo "============ done $(\date "${dateformat}") - ${timeacc} =============="
    ) 2>&1 \
       | \mail -s "${progname}: cron update $(\date "${dateformat}")" ${who}
    -- 
    Allen Brown
       work: Agilent Technologies      non-work: http://www.peak.org/~abrown/
             allen_brown at agilent.com	            abrown at peak.org
       If all economists were laid end to end,
       they would not reach a conclusion. ---George Bernard Shaw
    
    
    Jim Beard wrote:
    > Howdy folks,
    > 
    >     It's time for my bi-weekly simple(for some!) unix/linux question!  
    > I'm working on a shell script to automate some back ups using rsync.  I 
    > would like to know how long the rsync process takes to complete.  In 
    > order to do this I was hoping to execute the command with 'time' and 
    > then capture time's output.  The problem is that any output redirection 
    > I append to the command (like ' > logfile.txt' gets applied to the 
    > command, and not to time.  Time supposedly has an option for this, but I 
    > have likewise not been able to get this to execute correctly.
    > 
    > I've tried:
    > 
    > time -o test.txt ls
    > bash: -o: command not found
    > 
    > real    0m0.002s
    > user    0m0.000s
    > sys     0m0.000s
    > 
    > and
    > 
    > time ls -o test.txt
    > ls: test.txt: No such file or directory
    > 
    > real    0m0.009s
    > user    0m0.000s
    > sys     0m0.010s
    > 
    > along with similar variations including >'s and 2>'s and 2>&1's all 
    > sprinkled about.  Does anyone have any experience with this?
    > 
    > Jim Beard
    
  • [Eug-lug] PSP, Video, and mencoder…



    Linux Rocks!Wed Mar 30 14:40:02 PST 2005

    UPDATE: works as advertised... more testing require :)
    Jamie
    On Wednesday 30 March 2005 01:28 pm, Linux Rocks! wrote:
    : UPDATE:
    : Ive found that someone is using ffmpeg under linux, so Im compiling it (and
    : faac)... will see how it works...
    :
    : This is the article:
    : Converting movies in Linux
    :
    :
    : A patch has been added to the ffmpeg program recently that adds
    : compatibility with the PSP. You will need to download the latest version of
    : ffmpeg from
    :
    : their CVS. Run this from a terminal window to get the sources:
    : > cvs -z9 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
    :
    : Now you can enter the ffmpeg directory and configure, compile and install
    : the program, make sure to compile with at least the "--enable-faac" option
    : (which means you also need the faac package).
    :
    : > ./configure --enable-faac
    : > make
    : > sudo make install
    :
    : If everything compiled and installed without problems you should now be
    : able to create MP4 movies which work on the PSP. If you did encounter
    : problems, you can check out the homepages of the programs for more
    : information.
    :
    :
    : Here is how to convert a movie to the MP4 format, using the new option
    : added
    :
    : in ffmpeg:
    : > ffmpeg -i sourcemovie.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000
    : > -ab
    :
    : 32 M4V00002.MP4
    :
    :
    : This will create an MP4 movie with a frame rate of 14.985 (-r 14.985), a
    : resolution of 320 by 240 (-s 320x240), a video bitrate of 768kbps (-b 768),
    : an audio sampling frequency of 24000 Hz (-ar 24000) and an audio bitrate of
    : 32 kbps (-ab 32).
    :
    :
    : According to the English manual for the PSP from the FCC website that's
    : circling the internet the maximum video bitrate the PSP can handle is 768.
    : The maximum resolution is 320x240 for movies played back from the Memory
    : Stick so don't go any higher than that. As a final note, the ffmpeg
    : developer who added this PSP functionality mentions that there has been
    : problems with other framerates than 14.985 so to be sure it will work you
    : should stick with that. I've heard reports of other values working as well
    : though, so you could try different rates if you want to experiment.
    :
    : On Wednesday 30 March 2005 12:43 pm, Linux Rocks! wrote:
    : : So, Ive been trying to encode video that will work on the PSP. I havnt
    : : gotten any of my videos to work, but I have gotten some downloaded videos
    : : to work (they are encoded specificly for the PSP, but also playback with
    : : mplayer).
    : :
    : : From what I can tell, i seem to want a mp4 (divx?) scaled to 320x240,
    : : 15-29.97fps/384kbs, stereo audio at 64kbps
    : :
    : : Being a linux user, I figure mencoder would be the best app to re-encode
    : : videos, but I havnt had any luck getting them to play on the psp.
    : :
    : : Mac Users seem to be using ffmpegX/mencoder, but its different on the
    : : mac...
    : :
    : : Windows users seem to be using 3gp_Converter.
    : :
    : : Ive also found that this little device only plays videos if they are in
    : : the right location (on the Memory stick), and named w/in a filename
    : : convention (m4v?????.mp4).
    : :
    : : Anyway, I could use some help getting mencoder to output something usable
    : : on the PSP...  if someone knows the right parameters and such for getting
    : : the right output, I would like to know more...
    : :
    : : Jamie
    
    -- 
    > The day people think linux would be better served by somebody else (FSF
    > being the natural alternative), I'll "abdicate".  I don't think that
    > it's something people have to worry about right now - I don't see it
    > happening in the near future.  I enjoy doing linux, even though it does
    > mean some work, and I haven't gotten any complaints (some almost timid
    > reminders about a patch I have forgotten or ignored, but nothing
    > negative so far).
    >
    > Don't take the above to mean that I'll stop the day somebody complains:
    > I'm thick-skinned (Lasu, who is reading this over my shoulder commented
    > that "thick-HEADED is closer to the truth") enough to take some abuse.
    > If I weren't, I'd have stopped developing linux the day ast ridiculed me
    > on c.o.minix.  What I mean is just that while linux has been my baby so
    > far, I don't want to stand in the way if people want to make something
    > better of it (*).
    >
    >                 Linus
    >
    > (*) Hey, maybe I could apply for a saint-hood from the Pope.  Does
    > somebody know what his email-address is? I'm so nice it makes you puke.
    	-- Taken from Linus's reply to someone worried about the future of Linux
    
    
  • [Eug-lug] Unix ‘time’ command



    larry priceWed Mar 30 14:38:29 PST 2005

    You are using the shell builtin time rather than the time command
    
    use
    
    which time #prints a path to the time command
    /usr/bin/time -o foo.txt ls #using the full path ensures you are using
    the command
    cat foo.txt 
    
    
    
    
    
    On Wed, 30 Mar 2005 14:37:50 -0800, Jim Beard <beard at counterclaim.com> wrote:
    > Howdy folks,
    > 
    >         It's time for my bi-weekly simple(for some!) unix/linux question!  I'm
    > working on a shell script to automate some back ups using rsync.  I
    > would like to know how long the rsync process takes to complete.  In
    > order to do this I was hoping to execute the command with 'time' and
    > then capture time's output.  The problem is that any output redirection
    > I append to the command (like ' > logfile.txt' gets applied to the
    > command, and not to time.  Time supposedly has an option for this, but
    > I have likewise not been able to get this to execute correctly.
    > 
    > I've tried:
    > 
    > time -o test.txt ls
    > bash: -o: command not found
    > 
    > real    0m0.002s
    > user    0m0.000s
    > sys     0m0.000s
    > 
    > and
    > 
    > time ls -o test.txt
    > ls: test.txt: No such file or directory
    > 
    > real    0m0.009s
    > user    0m0.000s
    > sys     0m0.010s
    > 
    > along with similar variations including >'s and 2>'s and 2>&1's all
    > sprinkled about.  Does anyone have any experience with this?
    > 
    > Jim Beard
    > counterclaim.com, Inc
    > http://www.counterclaim.com
    > http://openefm.sourceforge.net
    > (800) 264-8145
    > 
    > _______________________________________________
    > EUGLUG mailing list
    > euglug at euglug.org
    > http://www.euglug.org/mailman/listinfo/euglug
    > 
    
    
    -- 
    http://Zoneverte.org -- information explained
    Do you know what your IT infrastructure does?
    
  • [Eug-lug] Unix ‘time’ command



    Jim BeardWed Mar 30 14:37:50 PST 2005

    Howdy folks,
    
    	It's time for my bi-weekly simple(for some!) unix/linux question!  I'm 
    working on a shell script to automate some back ups using rsync.  I 
    would like to know how long the rsync process takes to complete.  In 
    order to do this I was hoping to execute the command with 'time' and 
    then capture time's output.  The problem is that any output redirection 
    I append to the command (like ' > logfile.txt' gets applied to the 
    command, and not to time.  Time supposedly has an option for this, but 
    I have likewise not been able to get this to execute correctly.
    
    I've tried:
    
    time -o test.txt ls
    bash: -o: command not found
    
    real    0m0.002s
    user    0m0.000s
    sys     0m0.000s
    
    and
    
    time ls -o test.txt
    ls: test.txt: No such file or directory
    
    real    0m0.009s
    user    0m0.000s
    sys     0m0.010s
    
    along with similar variations including >'s and 2>'s and 2>&1's all 
    sprinkled about.  Does anyone have any experience with this?
    
    Jim Beard
    counterclaim.com, Inc
    http://www.counterclaim.com
    http://openefm.sourceforge.net
    (800) 264-8145
    
    
  • [Eug-lug] PSP, Video, and mencoder…



    Linux Rocks!Wed Mar 30 13:28:14 PST 2005

    UPDATE:
    Ive found that someone is using ffmpeg under linux, so Im compiling it (and 
    faac)... will see how it works...
    
    This is the article:
    Converting movies in Linux
    
    
    A patch has been added to the ffmpeg program recently that adds compatibility 
    with the PSP. You will need to download the latest version of ffmpeg from 
    their CVS. Run this from a terminal window to get the sources:
    
    
    > cvs -z9 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
    
    
    Now you can enter the ffmpeg directory and configure, compile and install the 
    program, make sure to compile with at least the "--enable-faac" option (which 
    means you also need the faac package).
    
    > ./configure --enable-faac
    > make
    > sudo make install
    
    If everything compiled and installed without problems you should now be able 
    to create MP4 movies which work on the PSP. If you did encounter problems, 
    you can check out the homepages of the programs for more information.
    
    
    Here is how to convert a movie to the MP4 format, using the new option added 
    in ffmpeg:
    
    
    > ffmpeg -i sourcemovie.avi -f psp -r 14.985 -s 320x240 -b 768 -ar 24000 -ab 
    32 M4V00002.MP4
    
    
    This will create an MP4 movie with a frame rate of 14.985 (-r 14.985), a 
    resolution of 320 by 240 (-s 320x240), a video bitrate of 768kbps (-b 768), 
    an audio sampling frequency of 24000 Hz (-ar 24000) and an audio bitrate of 
    32 kbps (-ab 32).
    
    
    According to the English manual for the PSP from the FCC website that's 
    circling the internet the maximum video bitrate the PSP can handle is 768. 
    The maximum resolution is 320x240 for movies played back from the Memory 
    Stick so don't go any higher than that. As a final note, the ffmpeg developer 
    who added this PSP functionality mentions that there has been problems with 
    other framerates than 14.985 so to be sure it will work you should stick with 
    that. I've heard reports of other values working as well though, so you could 
    try different rates if you want to experiment.
    
    
    
    
    On Wednesday 30 March 2005 12:43 pm, Linux Rocks! wrote:
    : So, Ive been trying to encode video that will work on the PSP. I havnt
    : gotten any of my videos to work, but I have gotten some downloaded videos
    : to work (they are encoded specificly for the PSP, but also playback with
    : mplayer).
    :
    : From what I can tell, i seem to want a mp4 (divx?) scaled to 320x240,
    : 15-29.97fps/384kbs, stereo audio at 64kbps
    :
    : Being a linux user, I figure mencoder would be the best app to re-encode
    : videos, but I havnt had any luck getting them to play on the psp.
    :
    : Mac Users seem to be using ffmpegX/mencoder, but its different on the
    : mac...
    :
    : Windows users seem to be using 3gp_Converter.
    :
    : Ive also found that this little device only plays videos if they are in the
    : right location (on the Memory stick), and named w/in a filename convention
    : (m4v?????.mp4).
    :
    : Anyway, I could use some help getting mencoder to output something usable
    : on the PSP...  if someone knows the right parameters and such for getting
    : the right output, I would like to know more...
    :
    : Jamie
    
    -- 
    How do I type "for i in *.dvi do xdvi $i done" in a GUI?
    	-- Discussion in comp.os.linux.misc on the intuitiveness of interfaces