A simple but well coloured feed reader written in bash

Hello everyone.
I wrote these two functions for my .bashrc:
#!/bin/bash
if [ ! -n "$FEED_BOOKMARKS" ]; then export FEED_BOOKMARKS=$HOME/.feed_bookmarks; fi
if [ ! -d "$FEED_BOOKMARKS" ]; then mkdir -p $FEED_BOOKMARKS; fi
feed() {
if [ ! -d $FEED_BOOKMARKS ]; then mkdir $FEED_BOOKMARKS; fi
if [ ! -n "$1" ]; then
echo -e "\\n \\e[04mUsage\\e[00m\\n\\n \\e[01;37m\$ feed \\e[01;31m<url>\\e[00m \\e[01;31m<new bookmark?>\\e[00m\\n\\n \\e[04mSee also\\e[00m\\n\\n \\e[01;37m\$ deef\\e[00m\\n"
return 1;
fi
local rss_source="$(curl --silent $1 | sed -e ':a;N;$!ba;s/\n/ /g')";
if [ ! -n "$rss_source" ]; then
echo "The feed is empty";
return 1;
fi
# THE RSS PARSER
# The characters "£, §" are used as metacharacters. They should not be encountered in a feed...
echo -e "$(echo $rss_source | \
sed -e 's/&gt;/>/g' \
-e 's/&lt;/</g' \
-e 's/<\/a>/£/g' \
-e 's/href\=\"/§/g' \
-e 's/<title>/\\n\\n\\n :: \\e[01;31m/g' -e 's/<\/title>/\\e[00m ::\\n/g' \
-e 's/<link>/ [ \\e[01;36m/g' -e 's/<\/link>/\\e[00m ]/g' \
-e 's/<description>/\\n\\n\\e[00;37m/g' -e 's/<\/description>/\\e[00m\\n\\n/g' \
-e 's/<p>\|<br\s*\/\?>/\n/g' \
-e 's/<b>\|<strong>/\\e[01;30m/g' -e 's/<\/b>\|<\/strong>/\\e[00;37m/g' \
-e 's/<u>/\\e[4;37m/g' -e 's/<\/u>/\\e[00;37m/g' \
-e 's/<b>\|<code>/\\e[00m/g' -e 's/<\/b>\|<\/code>/\\e[00;37m/g' \
-e 's/<a[^§]*§\([^\"]*\)\"[^>]*>\([^£]*\)[^£]*£/\\e[01;31m\2\\e[00;37m \\e[01;34m[\\e[00;37m \\e[04m\1\\e[00;37m\\e[01;34m ]\\e[00;37m/g' \
-e 's/<li>/\n \\e[01;34m*\\e[00;37m /g' \
-e 's/<!\[CDATA\[\|\]\]>\|>\s*<//g' \
-e 's/<[^>]*>/ /g' \
-e 's/[<>£§]//g')\n\n";
# END OF THE RSS PARSER
if [ -n "$2" ]; then
echo "$1" > $FEED_BOOKMARKS/$2
echo -e "\\n\\t\\e[01;37m==> \\e[01;31mBookmark saved as \\e[01;36m\\e[04m$2\\e[00m\\e[01;37m <==\\e[00m\\n"
fi
deef() {
if test -n "$1"; then
if [ ! -r "$FEED_BOOKMARKS/$1" ]; then
echo -e "\\n \\e[01;31mBookmark \\e[01;36m\\e[04m$1\\e[00m\\e[01;31m not found.\\e[00m\\n\\n \\e[04mType:\\e[00m\\n\\n \\e[01;37m\$ deef\\e[00m (without arguments)\\n\\n to get the complete list of all currently saved bookmarks.\\n";
return 1;
fi
local url="$(cat $FEED_BOOKMARKS/$1)";
if [ ! -n "$url" ]; then
echo "The bookmark is empty";
return 1;
fi
echo -e "\\n\\t\\e[01;37m==> \\e[01;31m$url\\e[01;37m <==\\e[00m"
feed "$url";
else
echo -e "\\n \\e[04mUsage\\e[00m\\n\\n \\e[01;37m\$ deef \\e[01;31m<bookmark>\\e[00m\\n\\n \\e[04mCurrently saved bookmarks\\e[00m\\n";
for i in $(find $FEED_BOOKMARKS -maxdepth 1 -type f);
do echo -e " \\e[01;36m\\e[04m$(basename $i)\\e[00m";
done;
echo -e "\\n \\e[04mSee also\\e[00m\\n\\n \\e[01;37m\$ feed\\e[00m\\n";
fi;
It's a very simple rss reader written in bash with two functions.
The first one:
$ feed <url> <new bookmark?>
prints the parsed content of <url> and possibly save the url as <new bookmark?>, if specified.
For example:
$ feed http://www.archlinux.org/feeds/news/
or
$ feed http://www.archlinux.org/feeds/news/ archnews
The second one:
$ deef <bookmark>
reads the url previously saved as <bookmark> and prints its content.
For example:
$deef archnews
I'd like you to test it and suggest whatever you want
The parser is very very simple.
**EDIT**
A better version of this script is this.
Last edited by grufo (2012-08-15 02:41:19)

skanky wrote:
Break the '' :-
sed 's/abc/'$VARIABLE'/'
You can split the sed script to a separate file, which would mean that you could have different types of file or streams that could be converted...should you wish.
Thank you
So, if you prefer a version with formatting variables...
#!/bin/bash
if [ ! -n "$FEED_BOOKMARKS" ]; then export FEED_BOOKMARKS=$HOME/.feed_bookmarks; fi
if [ ! -d "$FEED_BOOKMARKS" ]; then mkdir -p $FEED_BOOKMARKS; fi
feed() {
if [ ! -d $FEED_BOOKMARKS ]; then mkdir $FEED_BOOKMARKS; fi
if [ ! -n "$1" ]; then
echo -e "\\n \\e[04mUsage\\e[00m\\n\\n \\e[01;37m\$ feed \\e[01;31m<url>\\e[00m \\e[01;31m<new bookmark?>\\e[00m\\n\\n \\e[04mSee also\\e[00m\\n\\n \\e[01;37m\$ deef\\e[00m\\n"
return 1;
fi
local rss_source="$(curl --silent $1 | sed -e ':a;N;$!ba;s/\n/ /g')";
if [ ! -n "$rss_source" ]; then
echo "The feed is empty";
return 1;
fi
# THE RSS PARSER
# Formatting
local f_title="\\\\e[01;31m"
local f_descr="\\\\e[00;37m"
local f_ref="\\\\e[01;36m"
local f_bold="\\\\e[01;36m"
local f_italic="\\\\e[41;37m"
local f_underline="\\\\e[4;37m"
local f_code="\\\\e[00m"
local f_linklabel="\\\\e[01;31m"
local f_linkurl="\\\\e[04m"
local f_formatchrs="\\\\e[01;34m"
# The characters "£, §" are used as metacharacters. They should not be encountered in a feed...
echo -e "$(echo $rss_source | \
sed -e 's/&amp;/\&/g
s/&lt;\|&#60;/</g
s/&gt;\|&#62;/>/g
s/<\/a>/£/g
s/href\=\"/§/g
s/<title>/\\n\\n\\n :: '$f_title'/g; s/<\/title>/\\e[00m ::\\n/g
s/<link>/ [ '$f_ref'/g; s/<\/link>/\\e[00m ]/g
s/<description>/\\n\\n'$f_descr'/g; s/<\/description>/\\e[00m\\n\\n/g
s/<p\( [^>]*\)\?>\|<br\s*\/\?>/\n/g
s/<b\( [^>]*\)\?>\|<strong\( [^>]*\)\?>/'$f_bold'/g; s/<\/b>\|<\/strong>/'$f_descr'/g
s/<i\( [^>]*\)\?>\|<em\( [^>]*\)\?>/'$f_italic'/g; s/<\/i>\|<\/em>/'$f_descr'/g
s/<u\( [^>]*\)\?>/'$f_underline'/g; s/<\/u>/'$f_descr'/g
s/<code\( [^>]*\)\?>/'$f_code'/g; s/<\/code>/'$f_descr'/g
s/<a[^§]*§\([^\"]*\)\"[^>]*>\([^£]*\)[^£]*£/'$f_linklabel'\2'$f_descr' '$f_formatchrs'['$f_descr' '$f_linkurl'\1'$f_descr''$f_formatchrs' ]'$f_descr'/g
s/<li\( [^>]*\)\?>/\n '$f_formatchrs'*'$f_descr' /g
s/<!\[CDATA\[\|\]\]>//g
s/\|>\s*<//g
s/ *<[^>]\+> */ /g
s/[<>£§]//g')\n\n";
# END OF THE RSS PARSER
if [ -n "$2" ]; then
echo "$1" > $FEED_BOOKMARKS/$2
echo -e "\\n\\t\\e[01;37m==> \\e[01;31mBookmark saved as \\e[01;36m\\e[04m$2\\e[00m\\e[01;37m <==\\e[00m\\n"
fi
deef() {
if test -n "$1"; then
if [ ! -r "$FEED_BOOKMARKS/$1" ]; then
echo -e "\\n \\e[01;31mBookmark \\e[01;36m\\e[04m$1\\e[00m\\e[01;31m not found.\\e[00m\\n\\n \\e[04mType:\\e[00m\\n\\n \\e[01;37m\$ deef\\e[00m (without arguments)\\n\\n to get the complete list of all currently saved bookmarks.\\n";
return 1;
fi
local url="$(cat $FEED_BOOKMARKS/$1)";
if [ ! -n "$url" ]; then
echo "The bookmark is empty";
return 1;
fi
echo -e "\\n\\t\\e[01;37m==> \\e[01;31m$url\\e[01;37m <==\\e[00m"
feed "$url";
else
echo -e "\\n \\e[04mUsage\\e[00m\\n\\n \\e[01;37m\$ deef \\e[01;31m<bookmark>\\e[00m\\n\\n \\e[04mCurrently saved bookmarks\\e[00m\\n";
for i in $(find $FEED_BOOKMARKS -maxdepth 1 -type f);
do echo -e " \\e[01;36m\\e[04m$(basename $i)\\e[00m";
done;
echo -e "\\n \\e[04mSee also\\e[00m\\n\\n \\e[01;37m\$ feed\\e[00m\\n";
fi;

Similar Messages

  • I'm trying to set up a new feed reader (Brief) using Live Bookmarks but the suscribe button doesn't work. Anyone got a solution to this?

    I'm currently using Google reader for my feeds but Google is discontinuing it in July. So I need a new feed reader option. I am trying to set up the Brief add-on as my reader, using Live Bookmarks but when I attempt to subscribe to a feed, the subscribe button doesn't work.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • HT1923 i dont know what is happening but itunes is not reading my iphone 5 .i have the latest version of itunes as well as of iphone .but still something is not working

    i dont know what is happening but itunes is not reading my iphone 5 .i have the latest version of itunes as well as of iphone .but still something is not working

    Hi Karneet,
    Thanks for visiting Apple Support Communities.
    See this articles for some troubleshooting help, if your iPhone isn't detected by iTunes or Windows:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    iPod not recognized in 'My Computer' and in iTunes for Windows
    http://support.apple.com/kb/ts1369
    Best,
    Jeremy

  • How do I save to mixdown in mono, 0 db reduction in volume, in 64 bps mp3? Sounds simple, but none of the support staff has been able to do it.

    How do I save to mixdown in mono, 0 db reduction in volume, (Same volume level as in the files-no -3db reduction) in 64 bps mp3? Sounds simple, but none of the support staff has been able to do it.

    Several solutions to this problem.  I believe we may have discussed this over the support e-mail, but I'll share it again here so that it can help others as well.
    First, as I discussed in the e-mail, Audition defaults to support Pan Law which prevents content mixed to the center of a Stereo field from being louder than the same content panned far left or right.  This provides a -3dB drop to center content by default, but you can disable this completely by entering Preferences > Multitrack and setting the Default Panning Mode to Left/Right Cut (Logarithmic)
    Now, when you create a new Multitrack session, there is an option to specify the Master channelization.  Here, you can select Mono, Stereo, or 5.1 and this will be the default channelization mode for a basic mixdown operation regardless of your clip content, though can be overridden when exporting a session mixdown.
    Next, if you just choose the menu item Multitrack > Mixdown Session to New File... it will always default to the Master channelization.  This command does not write to disk, it is a preview or pre-processing step.  If you wish to export your multitrack session mixdown directly to disk, in your desired channelization and file format, please use the command File > Export > Multitrack Mixdown > Entire Session...  You will then have the complete set of output options, including the option to output at any channelization you like and the format you prefer.
    Here, I've disabled the default 5.1 output and selected a Mono mixdown instead.
    I've now changed the file format settings as well to MP3, 64K.
    With most of these configuration details, you should only need to set them once and these will remain the defaults for any subsequent projects, unless modified again.  The Export Multitrack Mixdown dialog will reset the Mixdown options to match the default output, and the MP3 settings may update to reflect the kBps setting nearest your session sample rate.

  • Extremely simple but baffling to me: Constructors.

    I haven't a clue what they are. I've read about them online and in the Java API, and I still have no idea what they are.
    My current understanding is this: a constructor is code dedicated towards defining how to treat a variable.
    But...I have to write two programs using constructors and I have no idea what to put in them. And in fact everything I've tried gives compiler errors. I'm sure all of you know the quiet desperation and frustration I'm feeling.
    Anyway, the assignments are:
    1) Create a class called Employee that includes three pieces of information as instance variables - a first name (type String), a last name (type String) and a monthly salary (double). Your class should have a constructor that initializes the three instance variables. Provide a set and a get method for each instance variable. If the monthly salary is not positive, set it to 0.0.
    Write a test application named EmployeeTest that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.
    2) Create a class called Date that includes three pieces of information as instance variables - a month (type int), a day (type int), and a year (type int). Your class should have a constructor that initializes the three instance variables and assumes that the values provided are correct. Provide a set and a get method for each instance variable. Provide a method displayDate that displays the month, day, and year separated by forward slashes.
    Write a test application named DateTest that demonstrates class Date's capabilities.
    It all seems extremely vague, to me.
    For the first assignment I've got:
    public class Employee
         public String FirstName;
         public String LastName;
         public double Salary;
    Which I think is right. But all attempts to create a constructor that have failed...I don't even know what one does. It seems kind of absurd for my first two labs to be so simple, basically logic exercises, and this to be so mind-destroying.
    There's got to be an if/then to see if the salary inputted is negative, which is simple, no problem.
    But the set and get methods...there's no data inputted into this program, so what the hell is it setting and getting, and how would the syntax work?
    Like:
    public void setFirstName( String FirstName )
    FirstName = FirstName;
    Doesn't work. And I think it's because it refers to itself for its own definition, which is nonsense. But I can't figure out what's right.
    The second assignment is simpler, but it also makes no sense to me. The day, month, and year are not variables. And even if they are variables, the user doesn't input them only to have them displayed, right? So what is the assignment even asking for? This is all taken directly out of the book.
    Any help is appreciated. =/

    FuneralParlor wrote:
    I haven't a clue what they are. I've read about them online and in the Java API, and I still have no idea what they are.That's not a good sign.
    My current understanding is this: a constructor is code dedicated towards defining how to treat a variable.No. They initialize an object.
    When you buy a new XBox, you have to spend some time taking it out of the box, removing the packaging, and plugging the wires together. It's like that.
    But...I have to write two programs using constructors and I have no idea what to put in them. You don't necessarily need to put anything in them. Does your class require initialization on the objects created for it?
    And in fact everything I've tried gives compiler errors. I'm sure all of you know the quiet desperation and frustration I'm feeling.It sounds like you're trying random stuff, hoping something will work. Don't do that.
    Anyway, the assignments are:...
    >
    It all seems extremely vague, to me.It doesn't give you the answers, but it tells you how to do them. It's pretty specific.
    For the first assignment I've got:
    public class Employee
         public String FirstName;
         public String LastName;
         public double Salary;
    Which I think is right.Well, generally fields shouldn't be public; they should be private. Also, you're not following Java naming conventions. Fields should start with a lower-case letter ("firstName" not "FirstName").
    But all attempts to create a constructor that have failed...I don't even know what one does. It seems kind of absurd for my first two labs to be so simple, basically logic exercises, and this to be so mind-destroying.It's simple stuff. I find it hard to believe that you've read your textbook.
    I'll give you a hint. The assignment says:
    Your class should have a constructor that initializes the three instance variables. This means that the constructor will need to take arguments, so you can use the arguments's values to assign to the fields (instance variables).
    But the set and get methods...there's no data inputted into this program, so what the hell is it setting and getting,The assignment tells you exactly what's going to be invoking the setter and getter methods:
    Write a test application named EmployeeTest that demonstrates class Employee's capabilities. [etc]
    and how would the syntax work?
    Like:
    public void setFirstName( String FirstName )
    FirstName = FirstName;
    Doesn't work. And I think it's because it refers to itself for its own definition, which is nonsense. But I can't figure out what's right.Right. In this case, the parameter name is obscuring the field name. This is where the "this" keyword comes in handy:
    this.Firstname = Firstname;Your textbook and teacher should have mentioned this.
    The second assignment is simpler, but it also makes no sense to me. The day, month, and year are not variables. What do you mean they're not variables? The assignment clearly says to make them so.
    And even if they are variables, the user doesn't input them only to have them displayed, right? So what is the assignment even asking for? It's just a super-simplified example. You're right; it's worthless in terms of real-world practicality. It's just something pointless but simple for you to get practice with. Don't worry about it.

  • Why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    why is "erase junk mail" de-highlighted in the drop down menus.  I'm not able to delete my junk mail box without doing each one individually.  Simple, but please someone help with an answer.  Thanks.

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • Help! "Memory could not be read/written" error

    I have developed a plugin for Photoshop using visual c++6.0. When I test the plugin on my laptop, it works perfectly well. However, when I test it on my desktop, it usually causes an error called
    "...instruction at...referenced memory... The memory could not be read/written".
    The codes are exactly the same. I have noted that one difference between my laptop and desktop is that my laptop is using FAT32 system and desktop is using NTFS. I don't know whether it is due to file system.
    In the code itself, I have used AfxBeginThread to start two worker threads. I have tried to put the method call that causes the error to the main thread and it works fine. But when I put the method calls in the worker thread, the error always comes out. Seems like the worker thread does not have enough privilege to access??? I am not sure.
    Could anyone help me??

    I would expect that this cannot work: you must surely call all
    Photoshop APIs from the master thread.
    Aandi Inston

  • Ipod(nano on XP laptop) connot by updated.Disk could not be read/written to

    hello all
    I have an ipod(nano 4Gbs with iTunes on XP laptop) and cannot get it updated. I have gone through the 5R's.
    I ran all updaters and got message - "iPod manager internal error" and "cannot mount iPod"
    Got this message on iTunes also "Disk could not be read/written to"
    ...any help would be much appreciated.

    with the internal manager error, see:
    iPod Updater for Windows: "Internal manager error" occurs when restoring or updating iPod
    with the itunes error message, see:
    "Disk cannot be read from or written to" when syncing iPod or "Firmware update failure" error when updating or restoring iPod
    and since you're on a laptop, we'd better check on these possibilities as well:
    iPod not recognized correctly on Toshiba laptop
    iPod not recognized when connected to Windows laptop over USB

  • Simple but reliable small office setup

    Hi group,
    I need some advice on setting up a simple but reliable small office wireless network. Up until now, we had a consumer AP combined with wired connections. However, we're moving to a new office where it's difficult to implement a wired network and we decided to implement a good quality wireless network.
    So, I was looking into business quality wireless AP's and it looks as if the Aironet 1600 is an interesting option. However, I'm not a (wireless) network specialist and have no knowledge of controlled AP's.
    The office is (only) 278 square meters (24 x 11.6), divided in two main areas by a supporting wall with two large doorways. I would like to keep the setup costs to a minimum, ideally using only 1 AP. This might mean placing the AP on the ceiling near the dividing wall (which is roughly in the middle), or on the wall itself.
    We need to support fast wireless connections from 15 laptop computers now, and up to 25 in the near future. Also, we'd like to support 15-25 mobile devices, i.e. tablets or smart phones.
    I've found some info on the differences between the AIR-CAP1602 and AIR-SAP1602 models, as well as the Internal and External antenna versions. It seems to me we could use the Standalone (SAP1602) model. However, I don't have enough knowledge to determine if the Aironet 1600 is actually appropriate for our requirements and if yes, which model.
    I would very much appreciate your advice!

    A 1600 would work or even a 2600. I prefer the 2600/3600 though but cost is your concern. I would also place the AP on the ceiling but belies the ceiling maybe in the middle if possible. Don't place the AP above the ceiling because you will loose coverage. Internal antennas are fine and just to note, rule of thumb is 25 users per AP so just in case you need more throughput, maybe using two separated by 3-5 meters would help also. If the 1600's are the choice for you then look at having one or two APs.
    Sent from Cisco Technical Support iPhone App

  • My iPhone's screen black, it does not work and I tied to hold press power and home press but it did not work? By the way for seconds I saw iTunes cabal  simple, but unfortunately, I do not have backup for my iPhone in my mac, so how can I restore my iphon

    My iPhone's screen black, it does not work and I tied to hold press power and home press but it did not work? By the way for seconds I saw iTunes cabal  simple, but unfortunately, I do not have backup for my iPhone in my mac, so how can I restore my iphone without loss my date?
    Thanks

    lbryan1987 wrote:
    I dont want the button problem solved i need to know how to restore the phone without using that button or going into settings
    You don't in the condition it's in. You will either have to get the phone replaced by Apple or pay a 3rd party to repair it.
    there seriously should be more than two ways to solve this other wise apple is useless and we will never buy another apple product.
    Seriously? It's physically broken!

  • After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    After downloading a pdf from a website, how can I view the file in Safari 6.0.4 (just as I can in Safari 5.0.6)?  I bet that it's simple, but I've missed something, somewhere, and a solution will be greatly appreciated.

    Hello Kirk,
    Thank's for your efforts, and I just wish that this was the solution.  Unfortunately, it isn't because, after double-clicking on the pdf in the website, it simply "opens" in another Safari window as a black screen - the pdf is there, somewhere, but not visible (either as an icon, or as a document). 
    When I right-click in the black Safari window, where the file is supposed to be, the only option available to display the file is to "Open file in Internet Explorer" (which is not what I want to do).  Other options include saving or printing the pdf, which I don't want until I've confirmed that it's the form that I want.  The same options are offered if I right-click on the file icon in the website.
    Any other suggestions, please?

  • Charactersvisible in preview but not printed from Reader

    Hi,
    System: Mini Mac, Canon MX870, Adobe Reader 11 (up to date)
    When downloading pdf from our uni web site (exam candidate lists etc) the document prints faithfully from OS Preview but printing directly from Reader causes character loss (such letters as y, and others). I know the work round with print as image, and Preview works as well, but just wondered what I have to tweak in Reader to get documents to print  (AR is up to date).
    Many thanks
    Mevado

    Hi,
    Sorry, would like me to send a link? Or is this some arcane function I should try? Sorry to be faecitious, unfortunately the file is covered by German confidentiality laws, as it is a list harvested from our internal internet site with names of candidtaes for an exam. I can try to modify it a little to remove potentially sensitive information. We have very strcit laws on privacy and personal data in Germany, at least as far as public institutions are concerned.

  • The answer may be simple but

    Since I got Fireworks 8 last week, I've worked through the
    accompanying 'Getting Started' manual and much of 'Training from
    the Source' by Patti Schulze. While I love the program, I'm
    frustrated by a difficulty that may be simple but is exasperating
    for me.
    When I create an image and try to save it as a .gif, jpg or
    png file for use in Dreamweaver,I find that I repeatedly time and
    time and tiime and time without end, simply lose the image.
    How can I resolve this difficulty?

    In FW 8, if you have a new image with multiple objects, you
    can "save"
    as PNG only, but you can "save as" any FW supported format,
    without all
    the html attributes associated with the Export dialog. With
    many
    formats, you will get the option to "save a copy" so you
    don't flatten
    your original artwork.
    And of course, you can "Export" too.
    That directory location issue is a pain. There is some kind
    of logic
    there, but I can never remember what it is. lol
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver
    Anthony Bollinger wrote:
    > Two ideas.
    >
    > First, exporting an image is not the same as saving an
    image. You save the
    > image to a PNG to preserve fireworks info, but you
    export to a jpg or gif or
    > other format (including "standard" png).
    >
    > Second, the program does not automatically export to the
    directory your png
    > or source file is in. This has tripped me up plenty
    before. Be sure to
    > check your path carefully. Anytime you experience
    problems, drill down the
    > path from the root of the drive.
    >
    > HTH -- Tony
    >
    > "kjpd84" <[email protected]> wrote in
    message
    > news:e961d8$r0s$[email protected]..
    >>
    >> Since I got Fireworks 8 last week, I've worked
    through the accompanying
    >> 'Getting Started' manual and much of 'Training from
    the Source' by Patti
    >> Schulze. While I love the program, I'm frustrated by
    a difficulty that
    >> may be
    >> simple but is exasperating for me.
    >>
    >> When I create an image and try to save it as a .gif,
    jpg or png file for
    >> use
    >> in Dreamweaver,I find that I repeatedly time and
    time and tiime and time
    >> without end, simply lose the image.
    >>
    >> How can I resolve this difficulty?
    >>
    >
    >

  • RSS feed reader stopped working

    Hi,
    I have an RSS feed reading function that worked just fine until yesterday.  I grab an RSS feed from google news using cfhttp and then parse it using XMLParse.  I am attaching the code below.
    Does anyone know if anything changed at Google or somewhere else that would cause my code to stop working?  Instead of the expected results, I see the browser saying the page is loading but never get any results.
    Perhaps there is a parameter I never set in the CFHTTP line and skated by without it for all this time.  It is definitely hanging up on the CFHTTP call.
    Thanks for the help.
    With relation to the code, the search term I am using is "football" and the searchtype is "AND".
    <CFPARAM NAME="newsfeed_start" DEFAULT="1">
    <CFPARAM NAME="newsfeed_end" DEFAULT="5">
    <CFQUERY DATASOURCE="#sitedatasource#" NAME="otherinfo">
    SELECT newssearchterm, newssearchtype
    FROM otherinfo
    WHERE siteid = #currentsiteid#
    </CFQUERY>
    <CFSET newsterm = replace(otherinfo.newssearchterm," ","+","all")>
    <CFIF otherinfo.newssearchtype EQ "AND">
    <cfhttp url="http://news.google.com/news?hl=en&ned=us&q=#newsterm#&btnG=Search+News&output=rss" method="GET" resolveurl="No" charset="utf-8" userAgent="firefox"></cfhttp>
    <CFELSE>
    <cfhttp url="http://news.google.com/news?as_q=&svnum=10&as_scoring=r&hl=en&ned=us&aq=f&ie=UTF-8&btnG=Go ogle+Search&as_epq=&as_oq=#newsterm#&as_eq=&as_drrb=q&as_qdr=&as_mind=1&as_minm=1&as_maxd= 31&as_maxm=1&as_nsrc=&as_nloc=&geo=&as_occt=any&aq=f&output=rss" method="GET" resolveurl="No" charset="utf-8" userAgent="firefox"></cfhttp>
    </CFIF>
    <cfset my_news_xml=XMLParse(cfhttp.FileContent)>
    <CFIF len(my_news_xml) GT 1200>
    <cfoutput>
    <CFIF ArrayLen(my_news_xml.rss.channel.item) GT newsfeed_end>
          <CFSET newsfeed_end = newsfeed_end>
    <CFELSE>
          <CFSET newsfeed_end = ArrayLen(my_news_xml.rss.channel.item)>
    </CFIF>
    <cfloop index="x" from="#newsfeed_start#" to="#newsfeed_end#">
    <LI><A HREF="#my_news_xml.rss.channel.item
    [x].link.xmlText#">#my_news_xml.rss.channel.item[x].title.xmlText#</A></LI></cfloop>
    </cfoutput>
    <CFELSE>
    <CFOUTPUT>There are no headlines matching your search term: #newsterm#
    </CFOUTPUT></CFIF>

    RSS feed was replaced by web-admin, works now.

  • NavigateToURL - RSS Feed Reader Linking Issue

    Hi, I am working on an RSS feed reader. The reader pulls blog entries just fine, but the results are not clickable. Tried numerous variations of "navigateToURL", but am relatively new to the Flex framework. Is there a way to make generated feed clickable? See code below:
    <?xml version='1.0' encoding='UTF-8'?>
    <s:Application xmlns:d="http://ns.adobe.com/fxg/2008/dt"
                   xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   xmlns:feed="services.feed.*"
                   width="275" height="325" backgroundColor="#E2E7E9" preloaderChromeColor="#E2E7E9"
                   viewSourceURL="srcview/index.html">
        <!-- Blog Feed 1.0 -->
        <!-- Properties of the parent ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <!-- Metadata ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <!-- Styles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <!-- Script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                import flash.net.navigateToURL;
                protected function list_creationCompleteHandler(event:FlexEvent):void
                    getDataResult.token = feed.getData();
                public function feed_clickHandler(event:MouseEvent):void
                    navigateToURL(new URLRequest("http://blog.mysite.com/feed/"+getDataResult.lastResult.title));
            ]]>
        </fx:Script>
        <!-- Script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <!-- Declarations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <fx:Declarations>
            <s:CallResponder id="getDataResult"/>
            <feed:Feed id="feed" showBusyCursor="true"/>
        </fx:Declarations>
        <!-- Declarations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <!-- UI components ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
        <fx:DesignLayer d:userLabel="Content">
            <s:BitmapImage d:userLabel="Shape 2" x="1" y="64" smooth="true"
                           source="@Embed('/assets/images/PSM-RSS-Feed/Shape 2.png')"/>
            <s:BitmapImage d:userLabel="line highlight" x="263" y="66" smooth="true"
                           source="@Embed('/assets/images/PSM-RSS-Feed/line highlight.png')"/>
        </fx:DesignLayer>
        <fx:DesignLayer d:userLabel="Feed Item">
        </fx:DesignLayer>
        <fx:DesignLayer d:userLabel="Scrollbar">
            <s:List id="list" x="4" y="64" click="feed_clickHandler(event)"
                    creationComplete="list_creationCompleteHandler(event)"
                    skinClass="components.FeedDataListSkin4">
                <s:AsyncListView list="{getDataResult.lastResult}"/>
            </s:List>
        </fx:DesignLayer>
        <fx:DesignLayer d:userLabel="Header">
            <s:BitmapImage d:userLabel="Shape 1" x="1" y="1" smooth="true"
                           source="@Embed('/assets/images/PSM-RSS-Feed/Shape 1.png')"/>
            <s:BitmapImage d:userLabel="Lines" x="12" y="43" smooth="true"
                           source="@Embed('/assets/images/PSM-RSS-Feed/Lines.png')"/>
            <s:BitmapImage d:userLabel="Pomona Swap Meet" x="11" y="8" smooth="true"
                           source="@Embed('/assets/images/PSM-RSS-Feed/Pomona Swap Meet.png')"/>
            <s:BitmapImage d:userLabel="Blog" x="184" y="31" smooth="true"
                           source="@Embed('/assets/images/PSM-RSS-Feed/Blog.png')"/>
        </fx:DesignLayer>
        <!-- UI components ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
    </s:Application>
    I tried to connect a click event to the feed "title", but I'm not sure that the mouse event function is correct, or that I have placed the "clickHandler(event)" in the right location. Any thoughts would be appreciated.
    Thx.

    apex.oracle.com is locked down pretty tight since it is a free service.
    I'm surprised that running a restricted Package (DBMS_NETWORK_ACL_ADMIN) didn't throw an error and laugh at you.
    If you want to test that app, you must bring it "in house".
    MK

Maybe you are looking for